1.3.2、通过Cookie匹配
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway - Cookie=sessionId, test #通过cookie匹配,cookie中sessionId=test时从这里路由 filters: - StripPrefix=1