@SpringBootApplication注解的详细分析
@SpringBootConfiguration:声明当前是一个配置类
@ComponentScan:指出扫描进容器的文件
@EnableAutoConfiguration:是主要的一个注解
@Import({AutoConfigurationImportSelector.class})是将AutoConfigurationImportSelector.class放入容器
@AutoConfigurationPackage注解
![](/i/l/?n=23&i=blog/2736141/202302/2736141-20230202153616583-539799690.png)
实现批量注解组件,批量将组件放入IOC容器中标签:容器,SpringBootApplication,AutoConfigurationImportSelector,祥解,注解,class From: https://www.cnblogs.com/jiang-kai/p/17086295.html