1).spring-core

  1. 说明
    包含Spring 框架基本的核心工具类型,基本组件,其他组件要依赖该包

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

2).spring-beans

  1. 说明
    包含访问配置文件、创建和管理bean以及进行IOC\DI操作相关类

  2. maven 配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-beans</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

3).spring-aop

  1. 说明
    包含在应用中使用Spring的AOP特性时所需的类型

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aop</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

4).spring-context

  1. 说明
    为Spring核心提供了大量的扩展
    -可以找到使用Spring ApplicationContext特性所需的全部类
    -JDNI所需的全部类
    -UI方面的用来与模板(Templating)引擎如Velocity,FreeMarker,JasperReports集成的类
    -校验Validation方面的相关类

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

5).spring-dao

  1. 说明
    包含Spring DAO、Spring Transaction进行数据访问的所有类

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-dao</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

6).spring-hibernate

  1. 说明
    包含Spring对Hibernate 2及Hibernate 3进行封装的所有类

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-hibernate</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

7).spring-jdbc

  1. 说明
    包含Spring对JDBC数据访问进行封装的所有类

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

8).spring-orm

  1. 说明
    Spring 对Dao特性进行了扩展,使其支持iBATIS,JDO等

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-orm</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

9).spring-remoting

  1. 说明
    包含支持EJB、JMS、远程调用Remoting(RMI、Hessian、Burlap、HttpInvoker、JAX-RPC)

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-remoting</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

10).spring-support

  1. 说明
    包含支持缓存Cache(ehcache)、JCA、JMX、邮件服务(Java Mail、COS Mail)、任务计划Scheduling(Timer、Quartz)等方面类

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-support</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

11).spring-web

  1. 说明
    包含Web应用开发时,用到Spring框架时所需的核心类
  • 自动载入WebApplicationContext特性的类
  • Struts与JSF集成类
  • 文件上传的支持类
  • Filter类和大量工具辅助类
  1. maven配置
    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

12).spring-webmvc

1.说明
包含Spring MVC框架相关的所有类

  • 包含国际化
  • 标签
  • Theme
  • 视图展现FreeMarker、JasperReports、Tiles、Velocity、XSLT相关类
  1. maven配置
    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>

13).spring-mock

  1. 说明
    包含Spring一整套mock类来辅助应用的测试

  2. maven配置

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-mock</artifactId>
    <version>4.3.2.RELEASE</version>
    </dependency>