1.3.9、通过权重 Weight匹配

server:
  port: 8080

spring: 
  application:
    name: gateway
  cloud:
    gateway:
      routes:
        - id: guo-system1
          uri: https://www.baidu.com
          predicates:
            - Weight=group1, 8 #路由权重比,80%
          filters:
            - StripPrefix=1
        - id: guo-system2
          uri: https://www.json.cn
          predicates:
            - Weight=group1, 2 #路由权重比,20%
          filters:
            - StripPrefix=1

 

1.3.9、通过权重 Weight匹配

上一篇:RunGame开发二


下一篇:git使用教程13-.gitignore忽略文件不提交