Java架構師之源碼分析專題SpringBoot2.x、Spring五、SpringMVC、Mybatis源碼分析

第1季springboot源碼之核心原理

三要素
AnnotationConfigApplicationContext
能夠實現基於Java的配置類加載Spring的應用上下文
配置的註解
@Configuration
掃描包的註解
@ComponentScan
springboot的啓動註解
image.png
run方法建立上下文
context = this.createApplicationContext();
加載配置文件,註解加載beanspring

相關文章
相關標籤/搜索