Spring development history and architecture

⭐Introduction to the author: I am a sophomore majoring in network engineering, continue to learn Java, and strive to output high-quality articles
⭐Author's homepage: @追梦空穹⭐Owned
column: Spring

Table of contents

development path

insert image description here

Architecture

The main components of the architecture of the Spring Framework:
insert image description here

  1. Core Container (Core Container): The core container is the basic part of the Spring framework, providing IoC container and dependency injection (DI) functions for managing and organizing application objects. The core container consists of the following modules:
    ○ Spring IoC (Inversion of Control): The Spring IoC module is responsible for managing the object instances of the application and realizes the core functions of the IoC container. It implements object creation, assembly and life cycle management by reading configuration files or annotation configurations.
    ○ Spring DI (Dependency Injection): The Spring DI module is responsible for implementing the dependency injection function, entrusting the dependency between objects to the IoC container for processing. With DI, the dependencies between objects are no longer hard-coded, but declared and resolved through configuration or annotations.
  2. AOP (Aspect-Oriented Programming): The AOP module provides support for aspect-oriented programming for decoupling and enhancing cross-cutting concerns of applications. It implements the dynamic insertion and execution of additional logic during application execution by defining concepts such as aspects, join points, and notifications.
  3. Data Access/Integration (Data Access/Integration): The data access/integration module provides integration support with data sources such as databases, caches, and message queues, as well as communication capabilities with other systems.
    It includes the following modules:
    ○ JDBC (Java Database Connectivity): The JDBC module provides integrated support with relational databases for database operations and data access.
    ○ ORM (Object-Relational Mapping): The ORM module provides integrated support with object-relational mapping frameworks, such as Hibernate, MyBatis, etc., to implement mapping and interaction between objects and databases.
    ○ OXM (Object/XML Mapping): The OXM module provides integration support with XML data for mapping and conversion between objects and XML.
    ○ JMS (Java Message Service): The JMS module provides integrated support with the message queuing system for sending and receiving asynchronous messages.
    ○ Transactions: The transaction module provides management and support for transactions, ensuring consistency and integrity in data access operations.
  4. Web: The Web module provides web development-related support for building web applications and handling web requests. It includes the following modules:
    ○ Spring MVC (Model-View-Controller): The Spring MVC module is the Web framework of the Spring framework, which provides support for the MVC architecture and is used to build flexible and scalable Web applications.
    ○ Spring WebFlux: The Spring WebFlux module provides support for responsive programming for building responsive web applications.
  5. Testing: The testing module provides support for unit testing and integration testing of Spring applications, including testing for dependency injection and AOP, support for mock objects, and database testing support.
  6. Other modules: The Spring framework also includes some other modules, such as security support (Spring Security), task scheduling (Spring Task), remote invocation (Spring Remoting), etc., to provide additional functions and scalability.

Supongo que te gusta

Origin blog.csdn.net/qq_60735796/article/details/131366127
Recomendado
Clasificación