1 导包
1.1 spring-webmvc : spring框架包(当然里面也包含springmvc)
1.2 mybatis : mybatis框架包
1.3 mybatis-spring : spring框架集成mybatis框架需要用到的包
1.4 spring-jdbc : springjdbc包
1.5 mysql:MySQL数据库驱动包
1.6 junit : 单元测试包
1.7 dbcp : 数据库连接池
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 2 <modelVersion>4.0.0</modelVersion> 3 <groupId>cn.xiangxu.spring</groupId> 4 <artifactId>mybatis03</artifactId> 5 <version>0.0.1-SNAPSHOT</version> 6 <dependencies> 7 <dependency> 8 <groupId>org.springframework</groupId> 9 <artifactId>spring-webmvc</artifactId> 10 <version>3.2.8.RELEASE</version> 11 </dependency> 12 <dependency> 13 <groupId>org.mybatis</groupId> 14 <artifactId>mybatis</artifactId> 15 <version>3.2.8</version> 16 </dependency> 17 <dependency> 18 <groupId>org.mybatis</groupId> 19 <artifactId>mybatis-spring</artifactId> 20 <version>1.2.3</version> 21 </dependency> 22 <dependency> 23 <groupId>org.springframework</groupId> 24 <artifactId>spring-jdbc</artifactId> 25 <version>3.2.8.RELEASE</version> 26 </dependency> 27 <dependency> 28 <groupId>mysql</groupId> 29 <artifactId>mysql-connector-java</artifactId> 30 <version>5.1.23</version> 31 </dependency> 32 <dependency> 33 <groupId>junit</groupId> 34 <artifactId>junit</artifactId> 35 <version>4.12</version> 36 </dependency> 37 <dependency> 38 <groupId>commons-dbcp</groupId> 39 <artifactId>commons-dbcp</artifactId> 40 <version>1.4</version> 41 </dependency> 42 </dependencies> 43 </project>