问题:
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即可。
问题:
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即可。