一:
真正原因:
Consider defining a bean of type 'com.pty.es.api.ArticleSearchRepository' in your configuration.问题解决

pty的maven下面导入了com.pty.api等等的jar包
之前的项目groupId是pty所以打成包放在了pty的maven下面

所以:
选中pty-elasticsearch和pty
首先 删除maven库中的对应目录的jar包
然后 Run as – maven clean
maven build… 然后输入compile

Consider defining a bean of type 'com.pty.es.api.ArticleSearchRepository' in your configuration.问题解决

即可
后来发现:
Consider defining a bean of type 'com.pty.es.api.ArticleSearchRepository' in your configuration.问题解决

这是因为在pty-elasticsearch中引入了com-pty-es这就不对了

应该是

Consider defining a bean of type 'com.pty.es.api.ArticleSearchRepository' in your configuration.问题解决

然后问题解决

相关文章:

  • 2021-10-09
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2021-08-20
  • 2021-08-23
  • 2021-11-25
  • 2021-04-24
  • 2021-07-07
  • 2021-08-31
  • 2021-08-31
相关资源
相似解决方案