1. 模块
Core container
包含Spring框架的基础模块,其中的spring-core
和spring-beans
提供了Spring的DI功能和IoC容器的实现。spring-expressions
模块为在Spring应用中通过Spring表达式配置应用程序对象提供了支持
AOP and instrumentation
包含支持AOP和类工具的模块。The spring-aop
模块提供Spring的AOP功能,spring-instrument
模块提供了对工具类的支持
Messaging
包含简化开发基于消息的应用的spring-messaging
模块
Data Access/Integration
包含简化与数据库和消息提供者交互的模块。spring-jdbc模块简化了用JDBC与数据库的交互,spring-orm
模块提供了与ORM框架的集成,如JPA何Hibernate。spring-jms
模块简化了与JMS提供者的交互
此模块组还包含了spring-tx模块,该模块提供了编程式与声明式事务管理。
Web
包含简化开发Web和porlet应用的模块。spring-web
和spring-webmvc
模块都是用于开发Web应用的RESTful的Web服务的。spring-websocket
模块支持使用WebSocket开发Web应用
spring5不再支持开发porlet应用程序,如果你想使用Spring来开发porlet应用程序,请继续使用Spring4.3.x版本
Test
包含spring-test
模块,简化了创建单元和集成测试