admin管理员组文章数量:1025227
现象
程序启动是报错
16:58:47.845 ERROR 11524 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'xxx' that could not be found.
The following candidates were found but could not be injected:
- xxx resulted in false
Action:
Consider revisiting the entries above or defining a bean of type xxx in your configuration.
Disconnected from the target VM, address: '127.0.0.1:51851', transport: 'socket'
Process finished with exit code 1
分析
未找到需要引用的类
解决方案
- 确认pom中引入了该类jar包;
- Spring初始化是否会扫描该类所在的目录,非启动目录可以使用ComponentScan加入启动扫描;
- Spring是否对该类实现进行了初始化加载,实现类上是否使用了Component、Service等初始化加载标签。
现象
程序启动是报错
16:58:47.845 ERROR 11524 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'xxx' that could not be found.
The following candidates were found but could not be injected:
- xxx resulted in false
Action:
Consider revisiting the entries above or defining a bean of type xxx in your configuration.
Disconnected from the target VM, address: '127.0.0.1:51851', transport: 'socket'
Process finished with exit code 1
分析
未找到需要引用的类
解决方案
- 确认pom中引入了该类jar包;
- Spring初始化是否会扫描该类所在的目录,非启动目录可以使用ComponentScan加入启动扫描;
- Spring是否对该类实现进行了初始化加载,实现类上是否使用了Component、Service等初始化加载标签。
本文标签: entriesrevisitingdefiningTypeBean
版权声明:本文标题:Consider revisiting the entries above or defining a bean of type *** that could not be found 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1738336500a1562788.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论