What is Spring IoC container?
4 years ago
Advance Java
- The Spring container is at the core of the Spring Framework.
- The container will create the objects, wire them together, configure them, and manage their complete life cycle from creation till destruction.
- The Spring container uses DI to manage the components that make up an application.
- The main tasks performed by IoC container are:
- to instantiate the application class
- to configure the object
- to assemble the dependencies between the objects
- There are two types of IoC They are:
- BeanFactory
- ApplicationContext
Bijay Satyal
Nov 2, 2021