摘要: 基于java注解的方式配置的Appconfig中不同注解的bean的加载顺序: 注册的顺序: @ComponentScan > 实现ImportSelector > 方法bean > @ImportResource("spring.xml") > 实现 ImportBeanDefinitionReg 阅读全文
posted @ 2020-03-16 17:29 wl_王麟 阅读(5217) 评论(0) 推荐(0) 编辑
摘要: spring源码分析 1、 spring源码中组件介绍: 2、spring启动工厂创建和实例化bean的流程: 下图是spring 容器的关系 分析是基于注解的方式,非解析spring.xml的方式 说明: AnnotationConfigApplicationContext 是Applicatio 阅读全文
posted @ 2020-03-16 17:03 wl_王麟 阅读(1834) 评论(0) 推荐(0) 编辑