• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Gateway谓词工厂测试

武飞扬头像
hazardhazard
帮助1

学新通

  1.  
     
  2.  
    server:
  3.  
    port: 10010
  4.  
    spring:
  5.  
    application:
  6.  
    name: gateway-service
  7.  
    cloud:
  8.  
    gateway:
  9.  
    routes:
  10.  
    - id: consumer
  11.  
    uri: lb://consumer-service
  12.  
    predicates:
  13.  
    - After=2023-07-14T19:39:00.866 08:00[Asia/Shanghai]
  14.  
    filters:
  15.  
    - StripPrefix=1
学新通
  1.  
    server:
  2.  
    port: 10010
  3.  
    spring:
  4.  
    application:
  5.  
    name: gateway-service
  6.  
    cloud:
  7.  
    gateway:
  8.  
    routes:
  9.  
    - id: consumer
  10.  
    uri: lb://consumer-service
  11.  
    predicates:
  12.  
    - Before=2023-07-14T19:50:00.866 08:00[Asia/Shanghai]
  13.  
    filters:
  14.  
    - StripPrefix=1
  1.  
    server:
  2.  
    port: 10010
  3.  
    spring:
  4.  
    application:
  5.  
    name: gateway-service
  6.  
    cloud:
  7.  
    gateway:
  8.  
    routes:
  9.  
    - id: consumer
  10.  
    uri: lb://consumer-service
  11.  
    predicates:
  12.  
    - Between=2023-07-14T20:00:00.123 08:00[Asia/Shanghai], 2023-07-14T20:05:00.123 08:00[Asia/Shanghai]
  1.  
     
  2.  
    server:
  3.  
    port: 10010
  4.  
    spring:
  5.  
    application:
  6.  
    name: gateway-service
  7.  
    cloud:
  8.  
    gateway:
  9.  
    routes:
  10.  
    - id: consumer
  11.  
    uri: lb://consumer-service
  12.  
    predicates:
  13.  
    - Header=token,hff
  14.  
    filters:
  15.  
    - StripPrefix=1
学新通
  1.  
    server:
  2.  
    port: 10010
  3.  
    spring:
  4.  
    application:
  5.  
    name: gateway-service
  6.  
    cloud:
  7.  
    gateway:
  8.  
    routes:
  9.  
    - id: consumer
  10.  
    uri: lb://consumer-service
  11.  
    predicates:
  12.  
    - Method=GET
  13.  
    filters:
  14.  
    - StripPrefix=1
  1.  
     
  2.  
    server:
  3.  
    port: 10010
  4.  
    spring:
  5.  
    application:
  6.  
    name: gateway-service
  7.  
    cloud:
  8.  
    gateway:
  9.  
    routes:
  10.  
    - id: consumer
  11.  
    uri: lb://consumer-service
  12.  
    predicates:
  13.  
    - Path=/whm/**
  14.  
    filters:
  15.  
    - StripPrefix=1
学新通
  1.  
    server:
  2.  
    port: 10010
  3.  
    spring:
  4.  
    application:
  5.  
    name: gateway-service
  6.  
    cloud:
  7.  
    gateway:
  8.  
    routes:
  9.  
    - id: consumer
  10.  
    uri: lb://consumer-service
  11.  
    predicates:
  12.  
    - Query=whm
  13.  
    filters:
  14.  
    - StripPrefix=1
  1.  
    server:
  2.  
    port: 10010
  3.  
    spring:
  4.  
    application:
  5.  
    name: gateway-service
  6.  
    cloud:
  7.  
    gateway:
  8.  
    routes:
  9.  
    - id: consumer
  10.  
    uri: lb://consumer-service
  11.  
    predicates:
  12.  
    - RemoteAddr=192.168.1.1/24
  13.  
    filters:
  14.  
    - StripPrefix=1


 

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhfjbfeb
系列文章
更多 icon
同类精品
更多 icon
继续加载