fix(gateway): 更新story-service路由路径为/api/story
All checks were successful
test/timeline-server/pipeline/head This commit looks good
All checks were successful
test/timeline-server/pipeline/head This commit looks good
将story-service的路由路径从/story/**修改为/api/story/**,并调整StripPrefix过滤器为1以匹配新的路径结构
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user