Spring运行时报错:Consider defining a bean of type ‘xxx.xxx.xxx.Xxx‘ in your configuration.

问题: Description: Parameter 0 of constructor in xx.xxx.xxx.Xxx required a bean of type xxx.xxx.xxx.Xxx that

问题:

Description:

Parameter 0 of constructor in xx.xxx.xxx.Xxx required a bean of type 'xxx.xxx.xxx.Xxx' that could not be found.

分析:

Consider defining a bean of type 'xxx.xxx.xxx.Xxx' in your configuration.

考虑定义一个类型为`xxx.xxx.xxx.Xxx`在配置中。

解决方案:由分析可知,Xxx类(此次出的问题bean包下的Xxx类)应该加上@Component即可。

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738332683a4038279.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信