v1.0.1 修复token失效时间无效问题,修复导出问题,优化log查询,优化sentinel配置
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>central-platform</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
</parent>
|
||||
<artifactId>zlt-gateway</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-gateway</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
</parent>
|
||||
<artifactId>sc-gateway</artifactId>
|
||||
<description>spring cloud gateway网关</description>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-gateway</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
</parent>
|
||||
<artifactId>zuul-gateway</artifactId>
|
||||
<description>zuul网关</description>
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ package com.central.gateway.config;
|
||||
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.web.cors.CorsConfiguration;
|
||||
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
|
||||
import org.springframework.web.filter.CorsFilter;
|
||||
@@ -41,7 +42,7 @@ public class CorsConfigration {
|
||||
registration.setFilter(corsFilter());
|
||||
registration.addUrlPatterns("/*");
|
||||
registration.setName("corsFilter");
|
||||
registration.setOrder(Integer.MIN_VALUE);
|
||||
registration.setOrder(Ordered.HIGHEST_PRECEDENCE);
|
||||
return registration;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,32 @@ spring:
|
||||
port: ${zlt.redis.port}
|
||||
timeout: ${zlt.redis.timeout}
|
||||
|
||||
# sentinel动态配置规则
|
||||
cloud:
|
||||
sentinel:
|
||||
datasource:
|
||||
# 限流
|
||||
ds1:
|
||||
nacos:
|
||||
server-addr: ${zlt.nacos.server-addr}
|
||||
dataId: sentinel-flow
|
||||
groupId: DEFAULT_GROUP
|
||||
rule-type: flow
|
||||
# 熔断
|
||||
ds2:
|
||||
nacos:
|
||||
server-addr: ${zlt.nacos.server-addr}
|
||||
dataId: sentinel-degrade
|
||||
groupId: DEFAULT_GROUP
|
||||
rule-type: degrade
|
||||
# 系统负载保护
|
||||
ds4:
|
||||
nacos:
|
||||
server-addr: ${zlt.nacos.server-addr}
|
||||
dataId: sentinel-system
|
||||
groupId: DEFAULT_GROUP
|
||||
rule-type: system
|
||||
|
||||
zlt:
|
||||
oauth2:
|
||||
token:
|
||||
|
||||
Reference in New Issue
Block a user