mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-12 12:52:51 +00:00
优化gateway启动报警告
This commit is contained in:
parent
e7eed37470
commit
3ba5395d33
@ -25,11 +25,7 @@
|
|||||||
<!-- Gateway网关依赖,内置webflux-->
|
<!-- Gateway网关依赖,内置webflux-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-gateway</artifactId>
|
<artifactId>spring-cloud-starter-gateway-server-webflux</artifactId>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>jakarta.servlet</groupId>
|
|
||||||
<artifactId>jakarta.servlet-api</artifactId>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- redis方式限流 -->
|
<!-- redis方式限流 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@ -28,17 +28,21 @@ spring:
|
|||||||
username: @config.username@
|
username: @config.username@
|
||||||
password: @config.password@
|
password: @config.password@
|
||||||
gateway:
|
gateway:
|
||||||
|
server:
|
||||||
|
webflux:
|
||||||
discovery:
|
discovery:
|
||||||
locator:
|
locator:
|
||||||
enabled: true
|
enabled: true
|
||||||
globalcors:
|
globalcors:
|
||||||
cors-configurations:
|
cors-configurations:
|
||||||
'[/**]':
|
'[/**]':
|
||||||
allowCredentials: true
|
allow-credentials: true
|
||||||
#springboot2.4后需用allowedOriginPatterns
|
allowed-origin-patterns:
|
||||||
allowedOriginPatterns: "*"
|
- "*"
|
||||||
allowedMethods: "*"
|
allowed-methods:
|
||||||
allowedHeaders: "*"
|
- "*"
|
||||||
|
allowed-headers:
|
||||||
|
- "*"
|
||||||
#Sentinel配置
|
#Sentinel配置
|
||||||
sentinel:
|
sentinel:
|
||||||
transport:
|
transport:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user