最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

运维笔记admin28浏览0评论

问题:

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即可。

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论