Question: how ioc works in spring?
Answer: An IoC container is a common characteristic of frameworks that implement IoC. In the Spring framework, the IoC container is represented by the interface ApplicationContext. The Spring container is responsible for instantiating, configuring and assembling objects known as beans, as well as managing their lifecycle.