1.3.3、通过Header属性匹配
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway - Header=X-Request-Id, \d+ #通过 Header 属性匹配,当header中X-Request-Id=数字时匹配 filters: - StripPrefix=1