project-gateway.yaml
707 Bytes
spring:
cloud:
gateway:
routes:
- id: user
uri: lb://project-user
predicates:
- Path=/pea-user/**
- id: order
uri: lb://project-order
predicates:
- Path=/pea-order/**
- id: gis
uri: lb://project-gis
predicates:
- Path=/gis/**
- id: district
uri: lb://project-district
predicates:
- Path=/district/**
- id: dispatch
uri: lb://project-dispatch
predicates:
- Path=/dispatch/**
auth:
path: /pea-user/**,/pea-order/**,/test/**,/v1/**,/gis/** # 需要认证的路边列表,多个用逗号连接