日期:2014-05-16  浏览次数:20809 次

Spring3+mybatis+mysql整合详解(一)

项目所需要的jar包:

?

Spring3:

?

org.springframework.aop-3.1.0.RELEASE.jar

org.springframework.asm-3.1.0.RELEASE.jar

org.springframework.aspects-3.1.0.RELEASE.jar

org.springframework.beans-3.1.0.RELEASE.jar

org.springframework.context-3.1.0.RELEASE.jar

org.springframework.context.support-3.1.0.RELEASE.jar

org.springframework.core-3.1.0.RELEASE.jar

org.springframework.expression-3.1.0.RELEASE.jar

org.springframework.instrument-3.1.0.RELEASE.jar

org.springframework.instrument.tomcat-3.1.0.RELEASE.jar

org.springframework.jdbc-3.1.0.RELEASE.jar

org.springframework.jms-3.1.0.RELEASE.jar

org.springframework.orm-3.1.0.RELEASE.jar

org.springframework.oxm-3.1.0.RELEASE.jar

org.springframework.spring-library-3.1.0.RELEASE.libd

org.springframework.test-3.1.0.RELEASE.jar

org.springframework.transaction-3.1.0.RELEASE.jar

org.springframework.web-3.1.0.RELEASE.jar

org.springframework.web.portlet-3.1.0.RELEASE.jar

org.springframework.web.servlet-3.1.0.RELEASE.jar

org.springframework.web.struts-3.1.0.RELEASE.jar

?

?

由于我也不搞不清楚,Spring这么多jar包每个的作用,有些有相互依赖,没办法,只能全部一起导进来。如果有高人指点一下他们的作用,不胜感激!

Spring3.0.1 jar下载地址:http://www.springsource.org/download

?

?

Mybatis:

?

mybatis-3.0.6.jar--mybatis核心包(http://code.google.com/p/mybatis/downloads/list

mybatis-spring-1.0.2.jar--同Spring整合所需jar(http://code.google.com/p/mybatis/downloads/list

?

Spring AOP 依赖jar:

?

aopalliance-1.0.jar

asm-3.3.1.jar

aspectj-1.6.10.jar

aspectjweaver-1.6.9.jar

cglib-2.2.2.jar

?

Jstl标签依赖jar:

jstl-1.2.jar

?

MySql数据库驱动jar:

mysql-connector-java-5.0.4-bin.jar

?

其他jar:

?

commons-logging-1.0.4.jar

log4j-1.2.9.jar?

portlet-api-2.0.jar