1 导包

  Struts2框架07 Struts2 + Spring + Mybatis 整合

 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</groupId>
 4   <artifactId>ssh03</artifactId>
 5   <version>0.0.1-SNAPSHOT</version>
 6   <packaging>war</packaging>
 7   <dependencies>
 8       <dependency>
 9           <groupId>org.apache.struts</groupId>
10           <artifactId>struts2-core</artifactId>
11           <version>2.3.8</version>
12       </dependency>
13       <dependency>
14           <groupId>org.apache.struts</groupId>
15           <artifactId>struts2-spring-plugin</artifactId>
16           <version>2.3.8</version>
17       </dependency>
18       <dependency>
19           <groupId>org.apache.struts</groupId>
20           <artifactId>struts2-json-plugin</artifactId>
21           <version>2.3.8</version>
22       </dependency>
23       <dependency>
24           <groupId>junit</groupId>
25           <artifactId>junit</artifactId>
26           <version>4.12</version>
27       </dependency>
28       <dependency>
29           <groupId>mysql</groupId>
30           <artifactId>mysql-connector-java</artifactId>
31           <version>5.1.37</version>
32       </dependency>
33       <dependency>
34           <groupId>commons-dbcp</groupId>
35           <artifactId>commons-dbcp</artifactId>
36           <version>1.4</version>
37       </dependency>
38       <dependency>
39           <groupId>org.springframework</groupId>
40           <artifactId>spring-jdbc</artifactId>
41           <version>3.2.8.RELEASE</version>
42       </dependency>
43       <dependency>
44           <groupId>org.mybatis</groupId>
45           <artifactId>mybatis</artifactId>
46           <version>3.2.8</version>
47       </dependency>
48       <dependency>
49           <groupId>org.mybatis</groupId>
50           <artifactId>mybatis-spring</artifactId>
51           <version>1.2.3</version>
52       </dependency>
53       <dependency>
54           <groupId>jstl</groupId>
55           <artifactId>jstl</artifactId>
56           <version>1.2</version>
57       </dependency>
58       <dependency>
59           <groupId>javax.annotation</groupId>
60           <artifactId>javax.annotation-api</artifactId>
61           <version>1.2</version>
62       </dependency>
63   </dependencies>
64 </project>
pom.xml

相关文章: