第1季springboot源码之外围原理
三要素
AnnotationConfigApplicationContext
能够实现基于Java的配置类加载Spring的利用上下文
配置的注解
@Configuration
扫描包的注解
@ComponentScan
springboot的启动注解
run办法创立上下文
context = this.createApplicationContext();
加载配置文件,注解加载bean
三要素
AnnotationConfigApplicationContext
能够实现基于Java的配置类加载Spring的利用上下文
配置的注解
@Configuration
扫描包的注解
@ComponentScan
springboot的启动注解
run办法创立上下文
context = this.createApplicationContext();
加载配置文件,注解加载bean