spring的bean生命周期如下:
1.实例化BeanFactoryPostProcessor
2.执行BeanFactoryPostProcessor.postProcesscorBeanFactory 方法
3.实例化BeanPostProcessor
4.实例化InstantiationAwareBeanPostProcessor
5.执行InstantiationAwareBeanPostProcessor. postProcessBeforeInstantiation
6.注入属性
7.BeanNameAware
8.BeanFactoryAware
9.ApplicationContextAware
10. BeanPostProcessor.postProcessBeforeInstantiation
11.InitializingBean
12.init-method
13.BeanPostProcessor. postProcessAfterInstantiation
14.InstantiationAwareBeanPostProcessor. postProcessAfterInstantiation
15. 使用
16.DisposableBean
17.destroy-method