【Zuul】使用学习
添加依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-zuul</artifactId> </dependency>
启用zuul
@EnableZuulProxy
忽略自动生成的路由
zuul:
ignoredServices: ‘*‘
敏感头
zuul
sensitive-headers:
原文:https://www.cnblogs.com/yangchongxing/p/11396004.html