SpringBoot源码之finishBeanFactoryIn
2021-03-03 本文已影响0人
handsomemao666
refresh方法中finishBeanFactoryInitialization方法用来实例化所有的单例bean。
具体流程如下:
start -> getBean -> doGetBean -> getSingleton -> CreateBean -> resolveBeforeInstantiation
-> doCreateBean -> createBeanInstance -> instantiateBean -> instantiate -> populateBean
-> initializeBean