由于在4.1中已經(jīng)設(shè)置了,所以earlySingletonExposure肯定為true,因此執(zhí)行addSingletonFacatory為singletonFactories map賦值,完成了beanName -> ObjectFactory的映射 2.populateBean方法中 則會(huì)完成對(duì)Bean依賴屬性的注入,因此代碼走到4.3的時(shí)候,testA的創(chuàng)建就停止了,會(huì)回到第一步去獲取testB,然后又是對(duì)testB的創(chuàng)建,最后會(huì)再次...
www.dbjr.com.cn/article/2318...htm 2025-5-30