服务网关Zuul

修改服务名称

在.yml 文件中配置

1.复杂点的写法
zuul:
  routes:
    aaaa:
      path: /myProduct/**
      serviceId: product
      
2.简单的写法
zuul:
  routes:
    product: /myProduct/**

修改可以cookie传递

zuul:
  routes:
    aaaa:
      path: /myProduct/**
      serviceId: product
      sentsitiveHeaders:

排除某些路由

zuul:
  routes:
    aaaa:
      path: /myProduct/**
      serviceId: product
      sentsitiveHeaders:
  #排除productList路由
  ignored-patterns:
    - /**/product/productList
Loading Disqus comments...
Table of Contents