spring 3.x jar包说明

来源:互联网 发布:linux top 查看子进程 编辑:程序博客网 时间:2024/06/06 07:13

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下的工具包

以上说的是3.0.6.但后面的3.1.x也几乎都一样,没什么区别

 

 

【Spring AOP + aspectJ 编程需要导入】
Spring自带的:
1、org.springframework.aop-3.1.1.jar(依赖【2】、【3】、【4】)
2、com.springsource.org.aopalliance-1.0.0.jar
3、com.springsource.org.apache.commons.logging-1.1.1.jar
4、org.springframework.core-3.1.1.RELEASE.jar(依赖【3】)
使用aspectJ框架,还需导入:
5、org.springframework.aspects-3.1.1.RELEASE.jar(依赖【6】、【7】、【8】、【9】)
6、com.springsource.org.apache.commons.logging-1.1.1.jar
7、org.springframework.beans-3.1.1.RELEASE.jar(依赖【6】、【8】)
8、org.springframework.core-3.1.1.RELEASE.jar(依赖【6】)
9、org.springframework.context-3.1.1.RELEASE.jar(依赖【6】、【7】、【8】)
10、com.springsource.org.aspectj.runtime-1.6.12.RELEASE.jar(似乎可以不要,见【Spring 3.1包详解】)
11、com.springsource.org.aspectj.weaver-1.6.12.RELEASE.jar
如果项目不是面向接口编程,则还需要下载cglib包放到项目里,因为cglib包可以产生不面向接口的代理:
12、com.springsource.net.sf.cglib-2.2.0
另外,由于cglib底层实现使用了ASM,所以还需要导入Spring自带的:
13、org.springframework.asm-3.1.1.RELEASE.jar

【DataSource】
【使用c3p0需要导入】
com.springsource.com.mchange.v2.c3p0-0.9.1.2

【使用dbcp需要导入】
1、com.springsource.org.apache.commons.dbcp-1.2.2.osgi.jar(依赖【2】)
2、com.springsource.org.apache.commons.pool-1.5.3.jar

【使用Proxool需要导入】
1、com.springsource.org.logicalcobwebs.proxool-0.9.1(依赖【2】、【3】)
2、com.springsource.org.apache.commons.logging-1.1.1.jar
3、com.springsource.org.logicalcobwebs.cglib.core-0.9.1(依赖【4】)
4、com.springsource.net.sf.cglib-2.2.0.jar

【使用BoneCP需要导入】
1、bonecp-0.7.1.RELEASE.jar(在http://jolbox.com/requirements.html下载)(依赖【1】、【2】、【3】)
2、guava-11.0.2.jar(http://code.google.com/p/guava-libraries/wiki/Release11下载)
3、slf4j-api-1.6.4.jar(依赖【4】)
4、slf4j-nop-1.6.4.jar(如果要换成其他日志的实现,例如log4j,请自行替换成其他包)
5、jsr305-2.0.0.jar(据说本来是在JDK7中支持该标准的,但被推迟到了jdk8。 另外,我在官网中也没发现jdk7支持jsr305标准,下载地址 
http://www.jarvana.com/jarvana/archive-details/com/google/code/findbugs/jsr305/2.0.0/jsr305-2.0.0.jar,下载后源码和二进制码事实 
上都是在这个包里的)

【使用tomcat jdbc pool需要导入】
1、com.springsource.org.apache.tomcat.jdbc-1.0.9.3(依赖【2】)
2、com.springsource.org.apache.juli.extras.springsource-6.0.32.S2-r1673.jar ---- Apache Tomcat的JULI日志组件允许Web应用提供 
自己的日志配置


strut2+spring3.2+ibatis2.3项目中spring所用到的架包,其中部分暂时未用到,为避免后期找起来麻烦,都塞项目理了。



原创粉丝点击