The IOC container of Spring is an interface that implements the Beanfactory, and obtains the reference of the corresponding Bean object through the Factory mode;
Beanfactory Sub-interfaces are:
Applicationcontext,autowirecapablebeanfactory,configurableportleapplication and so on, of which the most commonly used for ApplicationContext;
The implementation classes of the ApplicationContext interface are Filesystemxmlapplicationcontext, Classpathxmlapplicationcontext, Xmlwebapplicationcontext, of which classpathxmlapplicationcontext is most commonly used.
Other:
On the creation of a class, the use of beanfactory to obtain a bean is deferred, that is, the specified object is created the first time the Getbean method is used, and the ApplicationContext interface gets the instance of the bean itself when it is initialized by the container to create all the objects;
Spring Beanfactory and ApplicationContext