spring bean的初始化流程(生命週期)總結

bean的初始化流程大概如下: 以下圖片來自:http://www.javashuo.com/article/p-ypixtkvs-bd.html 上面的流程我補充一點哈,在調用BeanPostProcessor接口的postProcessBeforeInitialization方法後,下面會繼續調用bean被@PostConstruct註解的方法,然後纔會調用afterPropertiesSet
相關文章
相關標籤/搜索