[@徐雷frank][¥20]spring生命周期
实例化设置bean的AwareBeanPostProcessor.postProcessBeforeInitialization(Object bean, String beanName)InitializingBean.afterPorpertiesSetBeanPostProcessor.postProcessAfterInitialization(Object bean, String beanName)SmartInitializingSingleton.afterSingletonsInstantiatedSmartLifecycle.startbean已经在spring容器的管理下,可以做我们想做的事SmartLifecycle.stop(Runnable callback)DisposableBean.destroy()参考这篇:https://www.jianshu.com/p/be38b73fe690
赞0
踩0