以下为使用MAVEN-pom.xml的内容,主要包括”SpringMVC+Spring+Mybatis+Maven整合“需要的包
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <groupId>sy.testmybatis</groupId> 5 <artifactId>testmybatis</artifactId> 6 <packaging>war</packaging> 7 <version>0.0.1-SNAPSHOT</version> 8 <name>testmybatis Maven Webapp</name> 9 <url>http://maven.apache.org</url> 10 <dependencies> 11 <dependency> 12 <groupId>org.springframework</groupId> 13 <artifactId>spring-test</artifactId> 14 <version>3.2.0.RELEASE</version> 15 </dependency> 16 <dependency> 17 <groupId>org.springframework</groupId> 18 <artifactId>spring-webmvc</artifactId> 19 <version>3.2.0.RELEASE</version> 20 </dependency> 21 <dependency> 22 <groupId>org.springframework</groupId> 23 <artifactId>spring-core</artifactId> 24 <version>3.2.0.RELEASE</version> 25 </dependency> 26 <dependency> 27 <groupId>org.mybatis</groupId> 28 <artifactId>mybatis</artifactId> 29 <version>3.1.1</version> 30 </dependency> 31 <dependency> 32 <groupId>org.mybatis</groupId> 33 <artifactId>mybatis-spring</artifactId> 34 <version>1.1.1</version> 35 </dependency> 36 <dependency> 37 <groupId>mysql</groupId> 38 <artifactId>mysql-connector-java</artifactId> 39 <version>5.1.21</version> 40 </dependency> 41 <dependency> 42 <groupId>junit</groupId> 43 <artifactId>junit</artifactId> 44 <version>4.11</version> 45 <scope>test</scope> 46 </dependency> 47 <dependency> 48 <groupId>com.alibaba</groupId> 49 <artifactId>druid</artifactId> 50 <version>0.2.9</version> 51 </dependency> 52 <dependency> 53 <groupId>org.aspectj</groupId> 54 <artifactId>aspectjweaver</artifactId> 55 <version>1.7.1</version> 56 </dependency> 57 <dependency> 58 <groupId>org.codehaus.jackson</groupId> 59 <artifactId>jackson-mapper-asl</artifactId> 60 <version>1.9.11</version> 61 </dependency> 62 <dependency> 63 <groupId>commons-fileupload</groupId> 64 <artifactId>commons-fileupload</artifactId> 65 <version>1.2.2</version> 66 </dependency> 67 <dependency> 68 <groupId>javax.servlet</groupId> 69 <artifactId>servlet-api</artifactId> 70 <version>3.0-alpha-1</version> 71 </dependency> 72 <dependency> 73 <groupId>log4j</groupId> 74 <artifactId>log4j</artifactId> 75 <version>1.2.17</version> 76 </dependency> 77 <dependency> 78 <groupId>com.alibaba</groupId> 79 <artifactId>fastjson</artifactId> 80 <version>1.1.26</version> 81 </dependency> 82 </dependencies> 83 <build> 84 </build> 85 </project>