- Bean 生命周期底层原理
- 依赖注入底层
- 初始化,推断构造
- Aop 底层
- Spring事务底层原理
- 解析AnnotationConfigApplicationContext
BeanDefinitioinMap -> BeanDefinitionHolder -> BeanDefinition
老年代Map<String,Class> 对象.
实例化 Instant
赋值 Populate
初始化 Init
销毁: Des
Screen Shot 2022-06-28 at 11.26.47 AM.png
Aware->Before->实例化 -> afterProperties initmethod -> after后置处理 -> destory接口
推断构造:
一个构造方法->用这个
多个构造方法 -> 无参
AutoWired注解->用这个
@Before @After @PointCut 切点表达式
比如Spring事务 Async注解
Screen Shot 2022-06-28 at 12.32.47 PM.png











网友评论