What is IoC Container in Spring
Spring Container is core of Spring framework. Spring Container is responsible for instantiating beans, configure and assemble them together. It manage their compete life-cycle from creation to destruction. The Container gets its instruction on what object to instantiate, configure and assemble by reading configuration metadata. The configuration metadata is represented by XML, Java annotation and Java code. There are two types of IoC Container in Spring- BeanFactory ApplicationContext 1. BeanFactory : BeanFactory is simplest container. This is defined by org.springframework.bean.factory.BeanFactory interface. The most commonly used BeanFactory implementation is the XmlBeanFactory class . BeanFactory instantiate bean when getBean("") method is called. 2. ApplicationContext : ApplicationContext is more advanced container. This is defined by org.springframework.context.ApplicationContext interface.This interface extends org.springframework.bean.factory.BeanFactor...