fix:兼容 spring cloud 低版本的 gateway

pull/205/MERGE
YunaiV 2025-08-20 22:30:22 +08:00
parent c87fe17ee6
commit ad5f07ce02
2 changed files with 171 additions and 169 deletions

View File

@ -32,7 +32,12 @@
<!-- Gateway 网关相关 --> <!-- Gateway 网关相关 -->
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway-server-webflux</artifactId> <artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -5,8 +5,7 @@ spring:
profiles: profiles:
active: local active: local
http: codec:
codecs:
max-in-memory-size: 10MB # 调整缓冲区大小https://gitee.com/zhijiantianya/yudao-cloud/pulls/176 max-in-memory-size: 10MB # 调整缓冲区大小https://gitee.com/zhijiantianya/yudao-cloud/pulls/176
# Jackson 配置项 # Jackson 配置项
@ -28,8 +27,6 @@ spring:
cloud: cloud:
# Spring Cloud Gateway 配置项,对应 GatewayProperties 类 # Spring Cloud Gateway 配置项,对应 GatewayProperties 类
gateway: gateway:
server:
webflux:
# 路由配置项,对应 RouteDefinition 数组 # 路由配置项,对应 RouteDefinition 数组
routes: routes:
## system-server 服务 ## system-server 服务