project-gateway.yaml 1.15 KB
spring:
  cloud:
    gateway:
      routes:
        - id: placeOrder
          uri: lb://project-order
          predicates:
            - Path=/order/create
        - id: queryStorage
          uri: lb://project-storage
          predicates:
            - Path=/storage/
        - id: queryAccount
          uri: lb://project-account
          predicates:
            - Path=/account/
        - id: praiseItemRocketMQ
          uri: lb://project-provider
          predicates:
            - Path=/praise/rocketmq
        - id: praiseItemSentinel
          uri: lb://project-provider
          predicates:
            - Path=/praise/sentinel
        - id: queryPraise
          uri: lb://project-consumer
          predicates:
            - Path=/praise/query
        - id: user
          uri: lb://user
          predicates:
          - Path=/user/**, /v1/team/**, /v1/user/**
        - id: gis
          uri: lb://gis
          predicates:
          - Path=/gis/**
        - id: district
          uri: lb://district
          predicates:
            - Path=/district/**

auth:
  path: /test/**,/user/**,/v1/**,/gis/** # 需要认证的路边列表,多个用逗号连接