nacos properties复杂配置格式配置记录

server.port=10086

spring.cloud.gateway.discovery.locator.enabled=true

spring.cloud.gateway.discovery.locator.lower-case-service-id=true

 

spring.cloud.gateway.routes[0].id=product_route

spring.cloud.gateway.routes[0].uri=lb://product

spring.cloud.gateway.routes[0].predicates[0]=Path=/api/product/**

spring.cloud.gateway.routes[0].filters[0]=RewritePath=/api/(?.*),/$\{segment}

 

spring.cloud.gateway.routes[1].id=admin_route

spring.cloud.gateway.routes[1].uri=lb://renren-fast

spring.cloud.gateway.routes[1].predicates[0]=Path=/api/**

spring.cloud.gateway.routes[1].filters[0]=RewritePath=/api/(?.*),/renren-fast/$\{segment}

你可能感兴趣的:(微服务相关,gateway,cloud)