本文主要是介绍解决Spring运行时报错:Consider defining a bean of type ‘xxx.xxx.xxx.Xxx‘ in your configuration,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
《解决Spring运行时报错:Considerdefiningabeanoftype‘xxx.xxx.xxx.Xxx‘inyourconfiguration》该文章主要讲述了在使用S...
问题
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 bjsean of type 'xxx.xxx.xxx.Xxx' in your configuration.
考虑定义一个类型为`xxx.xxx.xxx.Xxx`在配js置中。
解决方案
由分析可知,Xxx类(此次出的问题bean包下的Xxx类)应该加上@Component即可。
总结
以上为个人经验,希望能给http://www.chinasem.cn大家一个参考,也希China编程望大js家多多支持编程China编程(www.chinasem.cn)。
这篇关于解决Spring运行时报错:Consider defining a bean of type ‘xxx.xxx.xxx.Xxx‘ in your configuration的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!