优化gateway启动报警告

This commit is contained in:
JEECG
2025-10-14 16:48:17 +08:00
parent e7eed37470
commit 3ba5395d33
2 changed files with 16 additions and 16 deletions

View File

@ -28,17 +28,21 @@ spring:
username: @config.username@
password: @config.password@
gateway:
discovery:
locator:
enabled: true
globalcors:
cors-configurations:
'[/**]':
allowCredentials: true
#springboot2.4后需用allowedOriginPatterns
allowedOriginPatterns: "*"
allowedMethods: "*"
allowedHeaders: "*"
server:
webflux:
discovery:
locator:
enabled: true
globalcors:
cors-configurations:
'[/**]':
allow-credentials: true
allowed-origin-patterns:
- "*"
allowed-methods:
- "*"
allowed-headers:
- "*"
#Sentinel配置
sentinel:
transport: