# Spring cloud config
spring.application.name=discovery-springcloud-example-gateway
server.port=1500

# Eureka config
eureka.instance.metadataMap.version=1.0
eureka.instance.metadataMap.group=example-service-group

# Consul config
spring.cloud.consul.discovery.tags=version=1.0,group=example-service-group

# Zookeeper config
spring.cloud.zookeeper.discovery.metadata.version=1.0
spring.cloud.zookeeper.discovery.metadata.group=example-service-group

# Admin config
management.server.port=5500

# Spring cloud api gateway config
spring.cloud.gateway.discovery.locator.enabled=true
spring.cloud.gateway.discovery.locator.lowerCaseServiceId=true
spring.cloud.gateway.routes[0].id=discovery-springcloud-example-a
spring.cloud.gateway.routes[0].predicates[0]=Path=/discovery-springcloud-example-a/**
# spring.cloud.gateway.routes[0].filters[0]=SetPath=/discovery-springcloud-example-a/**
# Gateway如果用Consul做服务注册发现中心，必须配置StripPrefix=1，其他配置中心配不配无所谓，但建议都配
spring.cloud.gateway.routes[0].filters[0]=StripPrefix=1
spring.cloud.gateway.routes[0].uri=lb://discovery-springcloud-example-a