配置
spring.cloud.gateway.routes[0].id=baldr-constructor-server spring.cloud.gateway.routes[0].uri=lb://baldr-constructor-server spring.cloud.gateway.routes[0].predicates[0]=Path=/con/** spring.cloud.gateway.routes[0].filters[0]=StripPrefix=1
配置前访问路径:
127.0.0.1:8080/baldr-constructor-server/v0/user
配置后访问路径:
127.0.0.1:8080/con/v0/user
标签:服务,spring,隐藏,routes,baldr,server,gateway,cloud From: https://www.cnblogs.com/excellencesy/p/17085180.html