报错提示内容:
解决:将启动类文件移动到com.atguigu.eduservice包。应该是EduApplication.java文件自带的@SpringBootApplication中包含@ComponentScan,默认是扫描该类所在的包和子包的,即 @ComponentScan(basePackages = {"com.atguigu"}),所以再写一遍就提示多余的。
- SpringBootApplication ComponentScan declaration Redundant alreadyspringbootapplication componentscan declaration springbootapplication componentscan redundant componentscan redundant length array check springbootapplication navigationduplicated quot navigation redundant springbootapplication注解springboot springbootapplication springframework application componentscan springboot时机