The spring framework consists of 7 well-defined modules (components ), which can exist independently or in conjunction with each other.
(1) Spring Core: The core container provides the basic functionality of spring. The core function of the core container is to use the IOC container to manage the dependency of the class. the pattern that spring takes is that the caller ignores the creation of the callee's instance, which is responsible for the creation and maintenance of the callee instance by the spring container and injects it to the caller when needed. This is by far the best decoupling mode.
(2) Spring AOP:Spring's AOP module provides support for cutting-plane programming. the SPRINGAOP uses a pure Java implementation. Spring AOP employs an agent-based AOP implementation, and theAOP agent is generated, managed by the IOC container, and the dependencies are managed by the IOC container, however, theSpring IOC container does not depend on AOP, so that we are free to choose whether to use AOP.
(3) Spring ORM: Provides a good integration with multiple third-party persistence layer frameworks.
(4) Spring DAO: Spring further simplifies the DAO development step by using Database access technology in a consistent manner, invoking transaction management in a uniform manner, avoiding the specific implementation of code that invades the business logic layer.
(5) Spring Context: It is a configuration file that provides context information for spring, and provides a framework for object access methods. The context provides some service support for spring, such as the Internationalization (i18n), e-mail, checksum scheduling functions.
(6) Spring Web: Provides fundamental integration features for web development, such as multi-party file uploads, using Servlet listeners for IOC container initialization and web- based ApplicationContext.
(7) Spring MVC: Provides an MVC implementation of Web Apps . the Spring MVC Framework does not simply provide a traditional implementation, it provides a clear separation model between the domain model code and the Web form. Also, other features of the spring framework can be
The role of the core modules of the spring framework