2019年5月8日

Spring中的BeanPostProcessor和BeanFactoryPostProcessor

摘要: BeanPostProcessor BeanFactoryPostProcessor 标准ioc容器初始化之后的后置处理器 BeanDefintionRegisterPostProcessor 在所有bean定义信息将要被加载,但是bean实例还未被创建时执行的 post BeanDefintion 阅读全文

posted @ 2019-05-08 09:30 闯入你笑颜 阅读(146) 评论(0) 推荐(0) 编辑

SpringBoot启动流程分析

摘要: 前景提示 @ComponentScan 的处理都放在org.springframework.context.annotation.ConfigurationClassParser#doProcessConfigurationClass 1.创建SpringApplication对象 阅读全文

posted @ 2019-05-08 09:29 闯入你笑颜 阅读(88) 评论(0) 推荐(0) 编辑

Spring Aop 原理分析

摘要: @EnableAspectJAutoProxy Aop功能开启注解 为容器中导入 @Import(AspectJAutoProxyRegistrar.class)组件,在其重写方法中为 ioc容器 注册 AnnotationAwareAspectJAutoProxyCreator (Aspectj自 阅读全文

posted @ 2019-05-08 09:29 闯入你笑颜 阅读(114) 评论(0) 推荐(0) 编辑

Spring容器的创建原理

摘要: 1.new ioc容器(AnnotationConfigApplicationContext 注解ioc) 2.refresh()方法调用 2.1 prepareRefresh()刷新前的预处理 a:initPropertySources(); b:getEnvironment().validate 阅读全文

posted @ 2019-05-08 09:29 闯入你笑颜 阅读(115) 评论(0) 推荐(0) 编辑

导航