Spring生命周期

1 实例化
2 @PostConstruct
3 @Autowired
4 BeanNameAware.setBeanName()
5 BeanFactoryAware.setBeanFactory()
6 ApplictionContextAware.setApplictionContext()
7 BeanPostProcessor.postProcessBeforeInitialization()
8 InitializingBean.afterPropertiesSet()
9 BeanPostProcessor.postProcessAfterInitialization()
10 Bean初始化完成
11 Bean销毁
12 DisposableBean.destroy()
13 @PreDestroy

//三级缓存 解决循环依赖
//递归依赖注入
BeanDefinitionValueResolver

你可能感兴趣的:(Spring生命周期)