Spring Cloud Gateway - 路由法则
1、 After Route Predicate Factory 输入一个参数:时间,匹配该时间之后的请求,示例配置: spring: cloud: gateway: routes: - id: after_route uri: https://anoyi.com predicates: - After=2019-11-11T11:11:11.111+08:00[Asia/Shanghai] 2、Before Route Predicate Factory 输入一个参数:时间,匹配该时间之前的请求,示例配置: spring: cloud: gateway: routes: - id: before_route uri: https://anoyi.com predicates: - Before=2019-11-11T11:11:11.111+08:00[Asia/Shanghai] 3、Between Route Predicate Factory 输入两个参数:时间1、时间2,匹配该时间段的请求,示例配置: spring: cloud: gateway: routes: - id: between_route uri: https://anoyi.com predicates: - Between=2019-11-10T11:11:11.111+08:00[Asia