降低路由刷新时间
This commit is contained in:
@ -39,7 +39,7 @@ public class DynamicRouteConfig implements RouteDefinitionLocator {
|
||||
private final AtomicReference<Long> lastRefreshTime = new AtomicReference<>(0L);
|
||||
|
||||
// 最小刷新间隔(毫秒)
|
||||
private static final long MIN_REFRESH_INTERVAL = 5000;
|
||||
private static final long MIN_REFRESH_INTERVAL = 120000;
|
||||
|
||||
private static final URI DEFAULT_URI = URI.create("http://localhost");
|
||||
|
||||
|
||||
@ -29,6 +29,7 @@ spring:
|
||||
discovery:
|
||||
server-addr: 115.190.8.52:8848 # Nacos 地址
|
||||
group: DEFAULT_GROUP
|
||||
watch-delay: 120000 # 60秒刷新一次
|
||||
loadbalancer:
|
||||
ribbon:
|
||||
enabled: false
|
||||
@ -47,8 +48,8 @@ auth:
|
||||
secret-key: his-is-a-very-long-and-secure-secret-key-for-jwt-signing-please-dont-use-short-keys
|
||||
token-expiration: 86400000 # 24小时
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.springframework.cloud.gateway: DEBUG
|
||||
org.springframework.cloud.loadbalancer: DEBUG
|
||||
reactor.core.publisher: DEBUG
|
||||
#logging:
|
||||
# level:
|
||||
# org.springframework.cloud.gateway: DEBUG
|
||||
# org.springframework.cloud.loadbalancer: DEBUG
|
||||
# reactor.core.publisher: DEBUG
|
||||
|
||||
Reference in New Issue
Block a user