Seven modules of the Spring framework
BenArticleFor reading notes, see spring in action second Chinese edition.
The Spring framework consists of seven modules. These seven modules provide us with everything we need for enterprise-level applications. We can choose to use them freely. In fact, Spring provides integration points with other frameworks and libraries, so we can use them freely. However, there is no specific description in spring in Action Second edition of the Chinese version that consists of the seven modules. I just gave a picture and explained each module in the diagram. As shown in the figure below: the dark part is added by myself, because no specific seven modules are specified in spring in action, so I checked the information on the Internet and found that these seven modules are the seven dark parts I have labeled.
Here I select two modules for instructions. For other information, see Chapter 1 of spring in Action Second Edition.
Core: (core container) is the core container of spring. It provides basic functions for the Spring framework. It is the basis for the most basic spring container and spring di dependencies. Its core class is beanfactory.
context: (context module) the application context of spring is based on the core container. If beanfactory in the core module makes spring a container, the context module is the reason for making spring a framework. The core class of this module is applicationcontext. It extends beanfactory and adds support for internationalization, application declaration cycle events, and verification. In addition, this module also provides many enterprise-level services, for example, see the electronic service, JNDI access, EJB inheritance, remote call, and scheduled service, and support integration with the module framework (such as velocity and freemarker. Generally, the Program is developed on this basis.