Seven modules of the Spring framework

The seven modules of the Spring framework are as follows:

1. Spring Core:
The Core package is the most basic part of the framework, providing IOC and dependency injection features. The underlying concept here is the BeanFactory, which provides a classic implementation of the Factory pattern to remove the need for the procedural singleton pattern and really allow you to separate dependencies and configuration from program logic.


2.Spring Context:

​ The Context package based on the Core package provides a framework-style object access method, somewhat like a JNDI registrar. The features of the Context package are derived from the Beans package and add support for internationalization (I18N) (such as resource binding), event propagation, the way resources are loaded, and the transparent creation of Context, such as through the servlet container.


3.Spring DAO:
​ DAO (Data Access Object) provides an abstraction layer for JDBC, which can eliminate redundant JDBC coding and parse database vendor-specific error codes. Moreover, the JDBC package also provides a better declarative transaction management method than programmatic, not only implements a specific interface, but also applies to all POJOs (plain old Java objects).


4. Spring ORM: The ORM package provides an integration layer for commonly used "object/relational" mapping APIs. These include JPA, JDO, Hibernate and iBatis. Using the ORM package, you can mix and match all Spring-provided features for "object/relational" mapping, such as the simple declarative transaction management mentioned earlier.


5.Spring AOP:
​ Spring's AOP package provides an aspect-oriented programming implementation that conforms to the AOP Alliance specification, allowing you to define, such as method-interceptors and pointcuts, logically, In this way, the functional coupling of the code is weakened and the code is clearly separated. And, with source-level metadata capabilities, you can incorporate various behavioral information into your code.


6.Spring Web:
​ The Web package in Spring provides basic integration features for Web development, such as multi-party file upload, IOC container initialization using Servlet listeners, and ApplicationContext for Web. This package enables Spring to be combined with other frameworks when using Spring with WebWork or Struts.


7. Spring Web MVC:
​ The MVC package in Spring provides the Model-View-Controller (MVC) implementation of the Web application. Spring's MVC framework does not just provide a traditional implementation, it provides a clear separation model between the domain model code and the Web Form. And, you can also take advantage of other features of the Spring framework.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325361942&siteId=291194637