Control inversion is an important concept of spring. And how to realize the control inversion of the IOC container is exactly how to achieve it.
The purpose of the IOC container is to be able to manage the relationships and dependencies among the objects in the system, and in order to implement this function, the Spring framework further abstracts the Bean beandefinition.
There is certainly more than one type of IOC container, and the specification for defining an IOC container is the Beanfactory class, which provides various interfaces for the IOC container.
The user can obtain the bean through the Beanfactory interface method Getbean.
In the inheritance system of Beanfactory, Xmlbeanfactory is at the lowest level, it realizes each interface of IOC container concretely. Gu Ming, it can read XML-defined beandefinition.
That's what we used to use applacationcontent.
After Beanfacory was loaded from XML to Beandefinition, a usable IOC container was born.
Implementation of the spring IOC container.