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

February 11, 2015

继续阅读

废话不多说,我们先来看项目所需要的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:

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

附:

mybatis中文API