Spring architecture (ancient version)

This article sorts out the architecture of spring for exam review. Because of teaching materials, the system is no longer up to date.

insert image description here
The layered architecture of the Spring Framework consists of seven well-defined modules. Spring modules are built on top of the core container, which defines how beans are created, configured, and managed.

  1. core container. It provides the basic functions of the Spring framework, and its main component is BeanFactory, which is the implementation of the factory pattern. It separates application configuration and dependency specification from actual application code through the Inversion of Control pattern.
  2. Spring context. Provides context information to the Spring Framework, including enterprise services such as JNDI, EJB, email, internationalization, validation and scheduling, and more.
  3. Spring AOP. Through the configuration management feature, it is easy to make any object managed by the Spring framework support AOP. The Spring AOP module directly integrates the functionality of aspect-oriented programming into the Spring framework.
  4. Spring DAO. The JDBC DAO abstraction layer provides a useful exception hierarchy for managing exception handling and error messages thrown by different database vendors. (The exception of accessing the database in JDBC is encapsulated from the original check exception (Sql Exception) to a runtime exception (DataAccessException))
  5. Spring ORM. The Spring framework inserts several ORM frameworks to provide ORM object relational tools, including JDO, Hibernate and iBatis SQL Map, and all follow Spring's general transaction and DAO exception hierarchy.
  6. Spring web modules. Provides context for web-based applications. It is built on top of the application context module, which simplifies the work of handling multiple requests and binding request parameters to domain objects.
  7. Spring MVC framework. A full-featured MVC implementation for building web applications. Highly configurable through strategic interfaces, MVC accommodates a large number of view technologies, including JSP, Velocity, Tiles, iText, and POI.

References:
JAVAEE Tutorial (Second Edition) Zheng Aqi

Guess you like

Origin blog.csdn.net/rglkt/article/details/122212740