Alibaba cloud Q & A 2022-02-13 09:05:12 阅读数:879
Realization IOC What are the steps of ？
analysis bean Configuration of , Will bean The configuration information of is converted to the above BeanDefinition Objects are stored in memory ,spring Used in HashMap Object storage , Some of them will be used xml Parsing Technology Traversal storage BeanDefinition Of HashMap object , Take out one by one BeanDefinition object , obtain bean Configuration information , utilize Java The reflection mechanism of instantiates the object , Save the instantiated object in another Map Then you can .
copyright：author[Alibaba cloud Q & A]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130905108015.html