如果注解没有问题的话,可能是因为启动类在项目结构中所在的目录不对导致的

更多推荐

spring-boot项目 Consider defining a bean of type 'xxxx' in your configur