轉自:http://www.cnblogs.com/kevin-yuan/archive/2012/09/12/2681539.html
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/)
③ 使用SpringJDBC功能時依賴的包
commons-dbcp.jar (下載:http://commons.apache.org/dbcp/download_dbcp.cgi)
commons-pool.jar (下載:http://mirrors.ibiblio.org/maven2/commons-pool/commons-pool/)
commons-collections-2.1.1.jar