|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2
|
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
3
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
4
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
5
|
+
|
|
|
6
|
+ <groupId>com.chinaitop</groupId>
|
|
|
7
|
+ <artifactId>depot-web</artifactId>
|
|
|
8
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
9
|
+ <packaging>jar</packaging>
|
|
|
10
|
+
|
|
|
11
|
+ <name>depot-web</name>
|
|
|
12
|
+ <description>Demo project for Spring Boot</description>
|
|
|
13
|
+
|
|
|
14
|
+ <parent>
|
|
|
15
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
16
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
17
|
+ <version>2.0.3.RELEASE</version>
|
|
|
18
|
+ <relativePath/> <!-- lookup parent from repository -->
|
|
|
19
|
+ </parent>
|
|
|
20
|
+
|
|
|
21
|
+ <properties>
|
|
|
22
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
23
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
24
|
+ <java.version>1.8</java.version>
|
|
|
25
|
+ <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
|
|
|
26
|
+ </properties>
|
|
|
27
|
+
|
|
|
28
|
+ <dependencies>
|
|
|
29
|
+ <dependency>
|
|
|
30
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
31
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
32
|
+ </dependency>
|
|
|
33
|
+ <!-- 引入spring boot自带的pagehelper插件 -->
|
|
|
34
|
+ <dependency>
|
|
|
35
|
+ <groupId>com.github.pagehelper</groupId>
|
|
|
36
|
+ <artifactId>pagehelper-spring-boot-starter</artifactId>
|
|
|
37
|
+ <version>1.2.3</version>
|
|
|
38
|
+ </dependency>
|
|
|
39
|
+ <dependency>
|
|
|
40
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
41
|
+ <artifactId>spring-cloud-starter-config</artifactId>
|
|
|
42
|
+ </dependency>
|
|
|
43
|
+ <dependency>
|
|
|
44
|
+ <groupId>org.mybatis.spring.boot</groupId>
|
|
|
45
|
+ <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
46
|
+ <version>1.3.1</version>
|
|
|
47
|
+ </dependency>
|
|
|
48
|
+ <dependency>
|
|
|
49
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
50
|
+ <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
|
|
|
51
|
+ </dependency>
|
|
|
52
|
+ <dependency>
|
|
|
53
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
54
|
+ <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
|
|
|
55
|
+ </dependency>
|
|
|
56
|
+ <dependency>
|
|
|
57
|
+ <groupId>org.springframework.retry</groupId>
|
|
|
58
|
+ <artifactId>spring-retry</artifactId>
|
|
|
59
|
+ </dependency>
|
|
|
60
|
+ <!--<dependency>-->
|
|
|
61
|
+ <!--<groupId>org.springframework.boot</groupId>-->
|
|
|
62
|
+ <!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
|
|
|
63
|
+ <!--<scope>provided</scope>-->
|
|
|
64
|
+ <!--</dependency>-->
|
|
|
65
|
+ <dependency>
|
|
|
66
|
+ <groupId>mysql</groupId>
|
|
|
67
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
68
|
+ </dependency>
|
|
|
69
|
+ <dependency>
|
|
|
70
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
71
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
72
|
+ <scope>test</scope>
|
|
|
73
|
+ </dependency>
|
|
|
74
|
+
|
|
|
75
|
+ <dependency>
|
|
|
76
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
77
|
+ <artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
78
|
+ </dependency>
|
|
|
79
|
+ <dependency>
|
|
|
80
|
+ <groupId>org.springframework.session</groupId>
|
|
|
81
|
+ <artifactId>spring-session-data-redis</artifactId>
|
|
|
82
|
+ </dependency>
|
|
|
83
|
+
|
|
|
84
|
+ <!-- 阿里巴巴json -->
|
|
|
85
|
+ <dependency>
|
|
|
86
|
+ <groupId>com.alibaba</groupId>
|
|
|
87
|
+ <artifactId>fastjson</artifactId>
|
|
|
88
|
+ <version>1.2.37</version>
|
|
|
89
|
+ </dependency>
|
|
|
90
|
+
|
|
|
91
|
+ <!-- feign -->
|
|
|
92
|
+ <dependency>
|
|
|
93
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
94
|
+ <artifactId>spring-cloud-starter-openfeign</artifactId>
|
|
|
95
|
+ </dependency>
|
|
|
96
|
+
|
|
|
97
|
+ </dependencies>
|
|
|
98
|
+
|
|
|
99
|
+ <dependencyManagement>
|
|
|
100
|
+ <dependencies>
|
|
|
101
|
+ <dependency>
|
|
|
102
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
103
|
+ <artifactId>spring-cloud-dependencies</artifactId>
|
|
|
104
|
+ <version>${spring-cloud.version}</version>
|
|
|
105
|
+ <type>pom</type>
|
|
|
106
|
+ <scope>import</scope>
|
|
|
107
|
+ </dependency>
|
|
|
108
|
+ </dependencies>
|
|
|
109
|
+ </dependencyManagement>
|
|
|
110
|
+
|
|
|
111
|
+ <build>
|
|
|
112
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
113
|
+ <plugins>
|
|
|
114
|
+ <plugin>
|
|
|
115
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
116
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
117
|
+ </plugin>
|
|
|
118
|
+ </plugins>
|
|
|
119
|
+ <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
|
|
|
120
|
+ <resources>
|
|
|
121
|
+ <resource>
|
|
|
122
|
+ <directory>src/main/java</directory>
|
|
|
123
|
+ <includes>
|
|
|
124
|
+ <include>**/*.properties</include>
|
|
|
125
|
+ <include>**/*.xml</include>
|
|
|
126
|
+
|
|
|
127
|
+ </includes>
|
|
|
128
|
+ <filtering>false</filtering>
|
|
|
129
|
+ </resource>
|
|
|
130
|
+ <resource>
|
|
|
131
|
+ <directory>src/main/resources</directory>
|
|
|
132
|
+ </resource>
|
|
|
133
|
+ </resources>
|
|
|
134
|
+ </build>
|
|
|
135
|
+
|
|
|
136
|
+ <repositories>
|
|
|
137
|
+ <repository>
|
|
|
138
|
+ <id>spring-milestones</id>
|
|
|
139
|
+ <name>Spring Milestones</name>
|
|
|
140
|
+ <url>https://repo.spring.io/milestone</url>
|
|
|
141
|
+ <snapshots>
|
|
|
142
|
+ <enabled>false</enabled>
|
|
|
143
|
+ </snapshots>
|
|
|
144
|
+ </repository>
|
|
|
145
|
+ </repositories>
|
|
|
146
|
+
|
|
|
147
|
+
|
|
|
148
|
+</project>
|