From ff84ab4dd117945112327368604df7291f798852 Mon Sep 17 00:00:00 2001 From: jianghao <332515344@qq.com> Date: Thu, 26 Feb 2026 12:32:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(gateway):=20=E6=9B=B4=E6=96=B0story-service?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=B7=AF=E5=BE=84=E4=B8=BA/api/story?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将story-service的路由路径从/story/**修改为/api/story/**,并调整StripPrefix过滤器为1以匹配新的路径结构 --- .../src/main/resources/application.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timeline-gateway-service/src/main/resources/application.properties b/timeline-gateway-service/src/main/resources/application.properties index e1c0360..c59020a 100644 --- a/timeline-gateway-service/src/main/resources/application.properties +++ b/timeline-gateway-service/src/main/resources/application.properties @@ -32,8 +32,8 @@ logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} # Story service route spring.cloud.gateway.routes[0].id=story-service spring.cloud.gateway.routes[0].uri=lb://timeline-story -spring.cloud.gateway.routes[0].predicates[0]=Path=/story/** -spring.cloud.gateway.routes[0].filters[0]=StripPrefix=0 +spring.cloud.gateway.routes[0].predicates[0]=Path=/api/story/** +spring.cloud.gateway.routes[0].filters[0]=StripPrefix=1 # File service route spring.cloud.gateway.routes[1].id=file-service