|
| 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>com.hand</groupId> |
| 5 | + <artifactId>SpringMybatisSpringMVC</artifactId> |
| 6 | + <packaging>war</packaging> |
| 7 | + <version>0.0.1-SNAPSHOT</version> |
| 8 | + <name>SpringMybatisSpringMVC Maven Webapp</name> |
| 9 | + <url>http://maven.apache.org</url> |
| 10 | + |
| 11 | + <properties> |
| 12 | + <spring.version>4.3.3.RELEASE</spring.version> |
| 13 | + <mybatis.version>3.4.1</mybatis.version> |
| 14 | + </properties> |
| 15 | + |
| 16 | + <dependencies> |
| 17 | + <dependency> |
| 18 | + <groupId>junit</groupId> |
| 19 | + <artifactId>junit</artifactId> |
| 20 | + <version>3.8.1</version> |
| 21 | + <scope>test</scope> |
| 22 | + </dependency> |
| 23 | + <!-- spring核心包 --> |
| 24 | + <dependency> |
| 25 | + <groupId>org.springframework</groupId> |
| 26 | + <artifactId>spring-core</artifactId> |
| 27 | + <version>${spring.version}</version> |
| 28 | + </dependency> |
| 29 | + |
| 30 | + <dependency> |
| 31 | + <groupId>org.springframework</groupId> |
| 32 | + <artifactId>spring-web</artifactId> |
| 33 | + <version>${spring.version}</version> |
| 34 | + </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>org.springframework</groupId> |
| 37 | + <artifactId>spring-oxm</artifactId> |
| 38 | + <version>${spring.version}</version> |
| 39 | + </dependency> |
| 40 | + <dependency> |
| 41 | + <groupId>org.springframework</groupId> |
| 42 | + <artifactId>spring-tx</artifactId> |
| 43 | + <version>${spring.version}</version> |
| 44 | + </dependency> |
| 45 | + |
| 46 | + <dependency> |
| 47 | + <groupId>org.springframework</groupId> |
| 48 | + <artifactId>spring-jdbc</artifactId> |
| 49 | + <version>${spring.version}</version> |
| 50 | + </dependency> |
| 51 | + |
| 52 | + <dependency> |
| 53 | + <groupId>org.springframework</groupId> |
| 54 | + <artifactId>spring-webmvc</artifactId> |
| 55 | + <version>${spring.version}</version> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.springframework</groupId> |
| 59 | + <artifactId>spring-aop</artifactId> |
| 60 | + <version>${spring.version}</version> |
| 61 | + </dependency> |
| 62 | + |
| 63 | + <dependency> |
| 64 | + <groupId>org.springframework</groupId> |
| 65 | + <artifactId>spring-context</artifactId> |
| 66 | + <version>4.3.3.RELEASE</version> |
| 67 | + </dependency> |
| 68 | + |
| 69 | + <dependency> |
| 70 | + <groupId>org.springframework</groupId> |
| 71 | + <artifactId>spring-test</artifactId> |
| 72 | + <version>${spring.version}</version> |
| 73 | + </dependency> |
| 74 | + <!-- mybatis核心包 --> |
| 75 | + <dependency> |
| 76 | + <groupId>org.mybatis</groupId> |
| 77 | + <artifactId>mybatis</artifactId> |
| 78 | + <version>${mybatis.version}</version> |
| 79 | + </dependency> |
| 80 | + <!-- mybatis/spring包 --> |
| 81 | + <dependency> |
| 82 | + <groupId>org.mybatis</groupId> |
| 83 | + <artifactId>mybatis-spring</artifactId> |
| 84 | + <version>1.3.1</version> |
| 85 | + </dependency> |
| 86 | + <!-- 导入java ee jar 包 --> |
| 87 | + <dependency> |
| 88 | + <groupId>javax</groupId> |
| 89 | + <artifactId>javaee-api</artifactId> |
| 90 | + <version>7.0</version> |
| 91 | + </dependency> |
| 92 | + <!-- 导入Mysql数据库链接jar包 --> |
| 93 | + <dependency> |
| 94 | + <groupId>mysql</groupId> |
| 95 | + <artifactId>mysql-connector-java</artifactId> |
| 96 | + <version>5.1.30</version> |
| 97 | + </dependency> |
| 98 | + <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 --> |
| 99 | + <dependency> |
| 100 | + <groupId>commons-dbcp</groupId> |
| 101 | + <artifactId>commons-dbcp</artifactId> |
| 102 | + <version>1.4</version> |
| 103 | + </dependency> |
| 104 | + <!-- JSTL标签类 --> |
| 105 | + <dependency> |
| 106 | + <groupId>jstl</groupId> |
| 107 | + <artifactId>jstl</artifactId> |
| 108 | + <version>1.2</version> |
| 109 | + </dependency> |
| 110 | + |
| 111 | + <dependency> |
| 112 | + <groupId>commons-io</groupId> |
| 113 | + <artifactId>commons-io</artifactId> |
| 114 | + <version>2.4</version> |
| 115 | + </dependency> |
| 116 | + <dependency> |
| 117 | + <groupId>commons-codec</groupId> |
| 118 | + <artifactId>commons-codec</artifactId> |
| 119 | + <version>1.9</version> |
| 120 | + </dependency> |
| 121 | + <dependency> |
| 122 | + <groupId>com.mchange</groupId> |
| 123 | + <artifactId>c3p0</artifactId> |
| 124 | + <version>0.9.5.2</version> |
| 125 | + </dependency> |
| 126 | + |
| 127 | + </dependencies> |
| 128 | + <build> |
| 129 | + <finalName>SpringMybatisSpringMVC</finalName> |
| 130 | + <plugins> |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-compiler-plugin</artifactId> |
| 134 | + <version>3.3</version> |
| 135 | + <configuration> |
| 136 | + <!-- 指定source和target的版本 --> |
| 137 | + <source>1.8</source> |
| 138 | + <target>1.8</target> |
| 139 | + </configuration> |
| 140 | + </plugin> |
| 141 | + </plugins> |
| 142 | + </build> |
| 143 | +</project> |
0 commit comments