|
2 | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
3 | 3 | <modelVersion>4.0.0</modelVersion>
|
4 | 4 | <groupId>cn.mrdear</groupId>
|
5 |
| - <artifactId>mrdear</artifactId> |
| 5 | + <artifactId>SSM-Demo</artifactId> |
6 | 6 | <packaging>war</packaging>
|
7 | 7 | <version>1.0.0</version>
|
8 | 8 | <name>mrdear Maven Webapp</name>
|
9 | 9 | <url>http://maven.apache.org</url>
|
| 10 | + |
10 | 11 | <properties>
|
11 | 12 | <spring.version>4.3.2.RELEASE</spring.version>
|
12 | 13 | <mybatis.version>3.4.1</mybatis.version>
|
13 | 14 | <mybatis.spring>1.3.0</mybatis.spring>
|
14 | 15 | <mybatis.pagehelper>4.1.6</mybatis.pagehelper>
|
| 16 | + <mybatis.mapper>3.3.9</mybatis.mapper> |
15 | 17 | <ehcache.version>2.6.11</ehcache.version>
|
16 | 18 | <ehcache.web>2.0.4</ehcache.web>
|
17 | 19 | <ehcache.mybatis>1.0.0</ehcache.mybatis>
|
18 |
| - <thymeleaf.version>3.0.1.RELEASE</thymeleaf.version> |
19 |
| - <shiro.version>1.3.0</shiro.version> |
20 | 20 | <hibernate.validator>5.2.4.Final</hibernate.validator>
|
21 | 21 | <druid.version>1.0.25</druid.version>
|
22 | 22 | <fastjson.version>1.2.16</fastjson.version>
|
23 | 23 | <mysql.version>5.1.39</mysql.version>
|
24 | 24 | <slf4j.version>1.7.21</slf4j.version>
|
25 | 25 | <logback.version>1.1.7</logback.version>
|
26 |
| - <guava.version>19.0</guava.version> |
27 | 26 | <httpclient.version>4.5.2</httpclient.version>
|
28 | 27 | <commonlang.version>3.4</commonlang.version>
|
29 | 28 | <commonbean.version>1.9.2</commonbean.version>
|
|
34 | 33 | </properties>
|
35 | 34 |
|
36 | 35 | <dependencies>
|
| 36 | + |
37 | 37 | <!-- springframe start -->
|
38 |
| - <dependency> |
39 |
| - <groupId>org.springframework</groupId> |
40 |
| - <artifactId>spring-core</artifactId> |
41 |
| - <version>${spring.version}</version> |
42 |
| - </dependency> |
43 |
| - <dependency> |
44 |
| - <groupId>org.springframework</groupId> |
45 |
| - <artifactId>spring-web</artifactId> |
46 |
| - <version>${spring.version}</version> |
47 |
| - </dependency> |
48 |
| - <dependency> |
49 |
| - <groupId>org.springframework</groupId> |
50 |
| - <artifactId>spring-jdbc</artifactId> |
51 |
| - <version>${spring.version}</version> |
52 |
| - </dependency> |
53 |
| - <dependency> |
54 |
| - <groupId>org.springframework</groupId> |
55 |
| - <artifactId>spring-tx</artifactId> |
56 |
| - <version>${spring.version}</version> |
57 |
| - </dependency> |
58 | 38 | <dependency>
|
59 | 39 | <groupId>org.springframework</groupId>
|
60 | 40 | <artifactId>spring-webmvc</artifactId>
|
61 | 41 | <version>${spring.version}</version>
|
62 | 42 | </dependency>
|
63 | 43 | <dependency>
|
64 | 44 | <groupId>org.springframework</groupId>
|
65 |
| - <artifactId>spring-aop</artifactId> |
| 45 | + <artifactId>spring-jdbc</artifactId> |
66 | 46 | <version>${spring.version}</version>
|
67 | 47 | </dependency>
|
68 | 48 | <dependency>
|
|
75 | 55 | <artifactId>spring-test</artifactId>
|
76 | 56 | <version>${spring.version}</version>
|
77 | 57 | </dependency>
|
78 |
| - <!-- springframe end --> |
79 | 58 | <!--cglib动态代理-->
|
80 | 59 | <dependency>
|
81 | 60 | <groupId>cglib</groupId>
|
|
93 | 72 | <artifactId>aspectjrt</artifactId>
|
94 | 73 | <version>1.8.6</version>
|
95 | 74 | </dependency>
|
96 |
| - |
97 | 75 | <!--mybatis start-->
|
98 | 76 | <dependency>
|
99 | 77 | <groupId>org.mybatis</groupId>
|
|
125 | 103 | <artifactId>ehcache-web</artifactId>
|
126 | 104 | <version>${ehcache.web}</version>
|
127 | 105 | </dependency>
|
128 |
| - <!--mybatis end--> |
| 106 | + <!--通用mapper--> |
| 107 | + <dependency> |
| 108 | + <groupId>tk.mybatis</groupId> |
| 109 | + <artifactId>mapper</artifactId> |
| 110 | + <version>${mybatis.mapper}</version> |
| 111 | + </dependency> |
| 112 | + <!--给通用mapper提供注解 start--> |
| 113 | + <dependency> |
| 114 | + <groupId>javax.persistence</groupId> |
| 115 | + <artifactId>persistence-api</artifactId> |
| 116 | + <version>1.0.2</version> |
| 117 | + </dependency> |
129 | 118 | <!--mysql start-->
|
130 | 119 | <dependency>
|
131 | 120 | <groupId>mysql</groupId>
|
132 | 121 | <artifactId>mysql-connector-java</artifactId>
|
133 | 122 | <version>${mysql.version}</version>
|
134 | 123 | </dependency>
|
135 |
| - <!--mysql end--> |
136 | 124 | <!--druid -start-->
|
137 | 125 | <dependency>
|
138 | 126 | <groupId>com.alibaba</groupId>
|
139 | 127 | <artifactId>druid</artifactId>
|
140 | 128 | <version>${druid.version}</version>
|
141 | 129 | </dependency>
|
142 |
| - <!--druid -end--> |
143 | 130 | <!--fastjson start-->
|
144 | 131 | <dependency>
|
145 | 132 | <groupId>com.alibaba</groupId>
|
146 | 133 | <artifactId>fastjson</artifactId>
|
147 | 134 | <version>${fastjson.version}</version>
|
148 | 135 | </dependency>
|
149 |
| - <!--fastjson end--> |
150 | 136 | <!--hibervate validate start-->
|
151 | 137 | <dependency>
|
152 | 138 | <groupId>org.hibernate</groupId>
|
153 | 139 | <artifactId>hibernate-validator</artifactId>
|
154 | 140 | <version>${hibernate.validator}</version>
|
155 | 141 | </dependency>
|
156 |
| - <!--hibervate validate end--> |
157 | 142 | <!--commons start -->
|
158 | 143 | <dependency>
|
159 | 144 | <groupId>org.apache.commons</groupId>
|
|
175 | 160 | <artifactId>commons-fileupload</artifactId>
|
176 | 161 | <version>${commonfile.version}</version>
|
177 | 162 | </dependency>
|
178 |
| - <!--commons end --> |
179 | 163 | <!--log start-->
|
180 | 164 | <dependency>
|
181 | 165 | <groupId>org.slf4j</groupId>
|
|
202 | 186 | <artifactId>jcl-over-slf4j</artifactId>
|
203 | 187 | <version>${slf4j.jcl.version}</version>
|
204 | 188 | </dependency>
|
205 |
| - <!--log end--> |
206 | 189 | </dependencies>
|
207 | 190 |
|
208 | 191 | <build>
|
209 |
| - <pluginManagement> |
| 192 | + |
| 193 | + <finalName>ssm</finalName> |
| 194 | + |
210 | 195 | <plugins>
|
| 196 | + <!--通用mapper插件--> |
| 197 | + <plugin> |
| 198 | + <groupId>org.mybatis.generator</groupId> |
| 199 | + <artifactId>mybatis-generator-maven-plugin</artifactId> |
| 200 | + <version>1.3.2</version> |
| 201 | + <configuration> |
| 202 | + <configurationFile>../SSM--Demo/src/main/resources/ModelGenerator.xml</configurationFile> |
| 203 | + <overwrite>true</overwrite> |
| 204 | + <verbose>true</verbose> |
| 205 | + </configuration> |
| 206 | + <dependencies> |
| 207 | + <dependency> |
| 208 | + <groupId>mysql</groupId> |
| 209 | + <artifactId>mysql-connector-java</artifactId> |
| 210 | + <version>5.1.39</version> |
| 211 | + </dependency> |
| 212 | + <dependency> |
| 213 | + <groupId>tk.mybatis</groupId> |
| 214 | + <artifactId>mapper</artifactId> |
| 215 | + <version>3.3.9</version> |
| 216 | + </dependency> |
| 217 | + </dependencies> |
| 218 | + </plugin> |
| 219 | + <!--编译插件设为1.8--> |
211 | 220 | <plugin>
|
212 | 221 | <groupId>org.apache.maven.plugins</groupId>
|
213 | 222 | <artifactId>maven-compiler-plugin</artifactId>
|
|
218 | 227 | </configuration>
|
219 | 228 | </plugin>
|
220 | 229 | </plugins>
|
221 |
| - </pluginManagement> |
222 | 230 | </build>
|
223 | 231 | </project>
|
0 commit comments