What is container in spring framework?

前端 未结 5 1585
南旧
南旧 2021-02-01 04:30
  1. I was going through this article http://www.vaannila.com/spring/spring-ioc-1.html and here the term container is used. The diagram below shows container. What is contai

5条回答
  •  余生分开走
    2021-02-01 05:20

    Container is used to describe any component that can contain other components inside itself.

    As per the Spring documentation here

    The BeanFactory interface is the central IoC container interface in Spring. Its
    responsibilities include instantiating or sourcing application objects, configuring such objects, and assembling the dependencies between these objects.

    IOC is the core principle which Spring uses for Separation of concern concept . No matter what you use - Spring MVC, Security , Core , DAO integrations , you will be using the IOC principle.

提交回复
热议问题