|
@@ -0,0 +1,144 @@
|
|
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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
4
|
+ <modelVersion>4.0.0</modelVersion>
|
|
5
|
+
|
|
6
|
+ <groupId>com.yaozhitech</groupId>
|
|
7
|
+ <artifactId>spring5-gateway</artifactId>
|
|
8
|
+ <packaging>jar</packaging>
|
|
9
|
+ <version>0.1.0</version>
|
|
10
|
+
|
|
11
|
+ <name>${project.artifactId}</name>
|
|
12
|
+ <description>spring5 demo</description>
|
|
13
|
+
|
|
14
|
+ <!-- Spring Boot 启动父依赖 -->
|
|
15
|
+ <parent>
|
|
16
|
+ <groupId>org.springframework.boot</groupId>
|
|
17
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
18
|
+ <version>2.1.4.RELEASE</version>
|
|
19
|
+ <relativePath />
|
|
20
|
+ </parent>
|
|
21
|
+
|
|
22
|
+ <properties>
|
|
23
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
24
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
25
|
+ <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
|
|
26
|
+ <spring-cloud.version>2.1.4.RELEASE</spring-cloud.version>
|
|
27
|
+ </properties>
|
|
28
|
+
|
|
29
|
+ <dependencyManagement>
|
|
30
|
+ <dependencies>
|
|
31
|
+ <dependency>
|
|
32
|
+ <groupId>org.springframework.cloud</groupId>
|
|
33
|
+ <artifactId>spring-cloud-dependencies</artifactId>
|
|
34
|
+ <version>Greenwich.RELEASE</version>
|
|
35
|
+ <type>pom</type>
|
|
36
|
+ <scope>import</scope>
|
|
37
|
+ </dependency>
|
|
38
|
+ </dependencies>
|
|
39
|
+ </dependencyManagement>
|
|
40
|
+
|
|
41
|
+ <dependencies>
|
|
42
|
+ <!--自省和监控的集成功能-->
|
|
43
|
+ <dependency>
|
|
44
|
+ <groupId>org.springframework.boot</groupId>
|
|
45
|
+ <artifactId>spring-boot-starter-actuator</artifactId>
|
|
46
|
+ </dependency>
|
|
47
|
+
|
|
48
|
+ <dependency>
|
|
49
|
+ <groupId>org.springframework.cloud</groupId>
|
|
50
|
+ <artifactId>spring-cloud-starter</artifactId>
|
|
51
|
+ </dependency>
|
|
52
|
+
|
|
53
|
+ <!-- 网关 -->
|
|
54
|
+ <dependency>
|
|
55
|
+ <groupId>org.springframework.cloud</groupId>
|
|
56
|
+ <artifactId>spring-cloud-starter-gateway</artifactId>
|
|
57
|
+ </dependency>
|
|
58
|
+
|
|
59
|
+ <!-- hystrix -->
|
|
60
|
+ <dependency>
|
|
61
|
+ <groupId>org.springframework.cloud</groupId>
|
|
62
|
+ <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
|
|
63
|
+ </dependency>
|
|
64
|
+
|
|
65
|
+ <!-- 最新推荐的断路器 -->
|
|
66
|
+<!-- <dependency> -->
|
|
67
|
+<!-- <groupId>org.springframework.cloud</groupId> -->
|
|
68
|
+<!-- <artifactId>spring-cloud-starter-circuitbreaker-reactor-resilience4j</artifactId> -->
|
|
69
|
+<!-- </dependency> -->
|
|
70
|
+
|
|
71
|
+ <!-- Spring Boot Web Flux 依赖 -->
|
|
72
|
+ <dependency>
|
|
73
|
+ <groupId>org.springframework.boot</groupId>
|
|
74
|
+ <artifactId>spring-boot-starter-webflux</artifactId>
|
|
75
|
+ </dependency>
|
|
76
|
+
|
|
77
|
+ <!-- Spring Boot 响应式 Redis 依赖 -->
|
|
78
|
+ <dependency>
|
|
79
|
+ <groupId>org.springframework.boot</groupId>
|
|
80
|
+ <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
|
|
81
|
+ </dependency>
|
|
82
|
+
|
|
83
|
+ <dependency>
|
|
84
|
+ <groupId>com.alicp.jetcache</groupId>
|
|
85
|
+ <artifactId>jetcache-starter-redis</artifactId>
|
|
86
|
+ <version>2.6.0.M3</version>
|
|
87
|
+ </dependency>
|
|
88
|
+
|
|
89
|
+ <dependency>
|
|
90
|
+ <groupId>com.alicp.jetcache</groupId>
|
|
91
|
+ <artifactId>jetcache-redis-lettuce</artifactId>
|
|
92
|
+ <version>2.6.0.M3</version>
|
|
93
|
+ </dependency>
|
|
94
|
+
|
|
95
|
+ <!-- Spring test 依赖 -->
|
|
96
|
+ <dependency>
|
|
97
|
+ <groupId>org.springframework.boot</groupId>
|
|
98
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
99
|
+ <scope>test</scope>
|
|
100
|
+ </dependency>
|
|
101
|
+
|
|
102
|
+ <dependency>
|
|
103
|
+ <groupId>junit</groupId>
|
|
104
|
+ <artifactId>junit</artifactId>
|
|
105
|
+ <scope>test</scope>
|
|
106
|
+ </dependency>
|
|
107
|
+
|
|
108
|
+ <!-- 集成wireMock来实现mock请求响应。wireMock会自动构建一个虚拟远程服务 -->
|
|
109
|
+ <dependency>
|
|
110
|
+ <groupId>org.springframework.cloud</groupId>
|
|
111
|
+ <artifactId>spring-cloud-contract-wiremock</artifactId>
|
|
112
|
+ <scope>test</scope>
|
|
113
|
+ </dependency>
|
|
114
|
+
|
|
115
|
+ <!-- 提供打包预定义数据服务 -->
|
|
116
|
+ <dependency>
|
|
117
|
+ <groupId>org.springframework.cloud</groupId>
|
|
118
|
+ <artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
|
|
119
|
+ <scope>test</scope>
|
|
120
|
+ </dependency>
|
|
121
|
+
|
|
122
|
+ <!-- 自动生成单元测试代码 -->
|
|
123
|
+ <dependency>
|
|
124
|
+ <groupId>org.springframework.cloud</groupId>
|
|
125
|
+ <artifactId>spring-cloud-starter-contract-verifier</artifactId>
|
|
126
|
+ <scope>test</scope>
|
|
127
|
+ </dependency>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+ <dependency>
|
|
131
|
+ <groupId>com.github.tomakehurst</groupId>
|
|
132
|
+ <artifactId>wiremock-standalone</artifactId>
|
|
133
|
+ <version>2.18.0</version>
|
|
134
|
+ <scope>test</scope>
|
|
135
|
+ </dependency>
|
|
136
|
+
|
|
137
|
+ <!-- lombok依赖包 -->
|
|
138
|
+ <dependency>
|
|
139
|
+ <groupId>org.projectlombok</groupId>
|
|
140
|
+ <artifactId>lombok</artifactId>
|
|
141
|
+ </dependency>
|
|
142
|
+
|
|
143
|
+ </dependencies>
|
|
144
|
+</project>
|