This commit is contained in:
tanghc
2019-06-14 17:31:17 +08:00
parent c159d6f85c
commit d4ce16ff3a
9 changed files with 107 additions and 14 deletions

View File

@@ -23,7 +23,7 @@
<dependency>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-gateway-common</artifactId>
<version>1.10.0-SNAPSHOT</version>
<version>1.10.1-SNAPSHOT</version>
</dependency>
<!-- ↓↓↓ 使用spring cloud zuul ↓↓↓ -->
@@ -31,6 +31,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-zuul</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
</dependency>
<!-- ↑↑↑ 使用spring cloud zuul ↑↑↑ -->

View File

@@ -14,6 +14,11 @@ zuul:
# 不用改,如果要改,建议全局替换修改
secret: MZZOUSTua6LzApIWXCwEgbBmxSzpzC
ribbon:
# 设置为true默认false则所有请求都重试默认只支持get请求重试
# 请谨慎设置因为post请求大多都是写入请求如果要支持重试确保服务的幂等性
OkToRetryOnAllOperations: false
# 注册中心,根据实际情况修改
eureka:
serverAddr: localhost:1111