What is container in spring framework?

前端 未结 5 1594
南旧
南旧 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 04:54

    I like this definition:

    Spring IoC Container The core of the Spring Application Framework is its Inversion of Control (IoC) Container. Its job is to instantiate, initialize, and wire up objects of the application, as well as provide lots of other features available in Spring throughout an object's lifetime. The objects that form the backbone of your application, and are managed by Spring Container, are called beans. They are ordinary Java objects— also known as POJOs— but they are instantiated, assembled by the Spring Container, and managed within it.

    Caliskan, Mert, and Kenan Sevindik. Beginning Spring, John Wiley & Sons, Incorporated, 2015.

    Short Spring IoC Container is box where Beans live.

提交回复
热议问题