mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
1.10.1
This commit is contained in:
@@ -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 ↑↑↑ -->
|
||||
|
||||
|
||||
|
@@ -14,6 +14,11 @@ zuul:
|
||||
# 不用改,如果要改,建议全局替换修改
|
||||
secret: MZZOUSTua6LzApIWXCwEgbBmxSzpzC
|
||||
|
||||
ribbon:
|
||||
# 设置为true(默认false),则所有请求都重试,默认只支持get请求重试
|
||||
# 请谨慎设置,因为post请求大多都是写入请求,如果要支持重试,确保服务的幂等性
|
||||
OkToRetryOnAllOperations: false
|
||||
|
||||
# 注册中心,根据实际情况修改
|
||||
eureka:
|
||||
serverAddr: localhost:1111
|
||||
|
Reference in New Issue
Block a user