Java架构师之源码分析专题SpringBoot2.x、Spring5、SpringMVC、Mybatis源码分析
文章目录
第1季springboot源码之核心原理
三要素
AnnotationConfigApplicationContext
可以实现基于Java的配置类加载Spring的应用上下文
配置的注解
@Configuration
扫描包的注解
@ComponentScan
springboot的启动注解
run方法创建上下文
context = this.createApplicationContext();
加载配置文件,注解加载bean
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论