1.spring、mybatis、mysql整合需要的jar包
一、spring、mybatis、mysql、和mybatis提供的与spring整合的插件包
mysql的jar:
mysql-connector-java-5.1.43-bin.jar c3po连接池的jar: c3p0-0.9.5.2.jar mybatis的jar: asm-3.3.1.jar(字节码) cglib-2.2.2.jar(代理) commons-logging-1.1.1.jar(日志) log4j-1.2.17.jar(log4日志,可不要) mybatis-3.2.7.jar(核心包) mybatis与spring整合的jar: mybatis-spring-1.1.1.jar spring的ioc模块的jar:(asm包在3.2.2中已经整合到core中) spring-beans-4.0.4.RELEASE.jar spring-context-4.0.4.RELEASE.jar spring-core-4.0.4.RELEASE.jar spring-expression-4.0.4.RELEASE.jar commons-logging-1.2.jar spring的aop模块的jar: aopalliance.jar(spring4中未见) spring-aspects-4.0.4.RELEASE.jar cglib-2.2.2.jar(未见) spring-aop-4.0.4.RELEASE.jar spring的transavion(事物模块)的jar: spring-jdbc-4.0.4.RELEASE.jar spring-orm-4.0.4.RELEASE.jar org.springframework.transaction-4.0.4.RELEASE.jar(tx) spring的web的jar(web工程中使用): spring-web-4.0.4.RELEASE.jar spring-webmvc-4.0.4.RELEASE.jar二、使用maven新建工程时,导包的配置
4.0.0 spring_mybatis_mysql spring_mybatis_mysql war 1.0-SNAPSHOT spring_mybatis_mysql Maven Webapp http://maven.apache.org junit junit 3.8.1 test mysql mysql-connector-java 5.1.43 com.mchange c3p0 0.9.5.2 asm asm 3.3.1 cglib cglib 2.2.2 commons-logging commons-logging 1.1.1 org.mybatis mybatis 3.2.7 org.mybatis mybatis-spring 1.1.1 org.springframework spring-beans 4.0.4.RELEASE org.springframework spring-context 4.0.4.RELEASE org.springframework spring-core 4.0.4.RELEASE org.springframework spring-expression 4.0.4.RELEASE aopalliance aopalliance 1.0 org.springframework spring-aspects 4.0.4.RELEASE org.springframework spring-aop 4.0.4.RELEASE org.springframework spring-jdbc 4.0.4.RELEASE org.springframework spring-orm 4.0.4.RELEASE org.springframework spring-tx 4.0.4.RELEASE junit junit RELEASE spring_mybatis_mysql