SpringBootApplication相关

1、@SpringBootApplication包含了@EnableAutoConfiguration和@ComponentScan两个注解,而@ComponentScan默认扫描当前包及当前包的子包。

这也是为什么SpringBoot的启动类的所在包要高于其他包。

posted @ 2019-07-09 16:19  E_lian  阅读(127)  评论(0编辑  收藏  举报