project-gateway.yaml 716 Bytes
spring:
  cloud:
    gateway:
      routes:
        - id: user
          uri: lb://project-user
          predicates:
            - Path=/pea-user/**, /user/**, /v1/team/**, /v1/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: /test/**,/v1/**,/gis/** # 需要认证的路边列表,多个用逗号连接