---
title: "使用Spring3.x需要的jar包及作用总结"
author: "gu0600402203"
date: "2013-03-02T00:05:23Z"
tags: []
categories: ["编程语言"]
slug: "spring3-x-jar"
draft: false
lastmod: "2013-03-02T00:05:23Z"
id: 1820207
url: "https://gwm.iteye.com/blog/1820207"
---

**Spring3.X以后jar包进行了重构，取消了原来2.X版本中的总的spring.jar包，而是把总包中的功能全部分开打包。正在向osgi靠拢。**

**Spring官网提供了共20个包，各个包的作用如下：**

org.springframework.aop-3.0.6.RELEASE

Spring的面向切面编程,提供AOP(面向切面编程)实现

org.springframework.asm- 3.0.6.RELEASE

Spring独立的asm程序,Spring2.5.6的时候需要asmJar 包3.0.6开始提供他自己独立的asmJar

org.springframework.aspects- 3.0.6.RELEASE

Spring提供对AspectJ框架的整合

org.springframework.beans-3.0.6.RELEASE

SpringIoC(依赖注入)的基础实现

org.springframework.context.support-3.0.6.RELEASE

Spring-context的扩展支持,用于MVC方面

org.springframework.context-3.0.6.RELEASE

Spring提供在基础IoC功能上的扩展服务，此外还提供许多企业级服务的支持，如邮件服务、任务调度、JNDI定位、EJB集成、远程访问、缓存以及各种视图层框架的封装等

org.springframework.core-3.0.6.RELEASE

Spring3.0.6的核心工具包

org.springframework.expression-3.0.6.RELEASE

Spring表达式语言

org.springframework.instrument.tomcat-3.0.6.RELEASE

Spring3.0.6对Tomcat的连接池的集成

org.springframework.instrument-3.0.6.RELEASE

Spring3.0.6对服务器的代理接口

org.springframework.jdbc-3.0.6.RELEASE

对JDBC的简单封装

org.springframework.jms-3.0.6.RELEASE

为简化JMS API的使用而作的简单封装

org.springframework.orm-3.0.6.RELEASE

整合第三方的ORM框架，如hibernate,ibatis,jdo，以及 spring的JPA实现

org.springframework.oxm-3.0.6.RELEASE

Spring 对Object/XMl的映射支持,可以让Java与XML之间来回切换

org.springframework.test-3.0.6.RELEASE

对Junit等测试框架的简单封装

org.springframework.transaction-3.0.6.RELEASE

为JDBC、Hibernate、JDO、JPA等提供的一致的声明式和编程式事务管理

org.springframework.web.portlet-3.0.6.RELEASE

基于protlet的MVC实现

org.springframework.web.servlet-3.0.6.RELEASE

基于servlet的MVC实现

org.springframework.web.struts-3.0.6.RELEASE

整合Struts的时候的支持

org.springframework.web-3.0.6.RELEASE

SpringWeb下的工具包

 

**做Spring还必须依赖第三方包：**

① Spring 工程依赖的公共包  
commons-logging-1\[1].0.4.jar（只要是做Spring都需要这个包，否则工程起不来）

② 使用SpringAOP功能时依赖的包  
 aspectjweaver-1\[1].5.3.jar  
aopalliance-1.0.jar  (下载：[http://mirrors.ibiblio.org/maven2/aopalliance/aopalliance/1.0/](http://mirrors.ibiblio.org/maven2/aopalliance/aopalliance/1.0/))

③ 使用SpringJDBC功能时依赖的包  
commons-dbcp.jar (下载：[http://commons.apache.org/dbcp/download\_dbcp.cgi](http://commons.apache.org/dbcp/download_dbcp.cgi))  
commons-pool.jar (下载：[http://mirrors.ibiblio.org/maven2/commons-pool/commons-pool/](http://mirrors.ibiblio.org/maven2/commons-pool/commons-pool/))  
commons-collections-2.1.1.jar

 

&lt;转：[http://blog.csdn.net/woshisap/article/details/7105255](http://blog.csdn.net/woshisap/article/details/7105255)&gt;