SpringBoot中属性注入失败的问题Consider defining a bean of type ‘’’ in your configuration
记一个SpringBoot中属性注入失败的问题Consider defining a bean of type ‘’’ in your configuration
今天遇到的一个问题:
代码检查了好几次,都没有错误,但是启动时就会报错Consider defining a bean of type ‘’’ in your configuration.
启动类在com.A.B的下,找不到的bean在com.A.C下
各种配置都配好了,目测没有问题,搜索解决办法;
1、配置compspcan
2、改变启动类位置
原创
2020-12-29 09:25:26 ·
3610 阅读 ·
17 评论