Zuul 过滤请求
Zuul filter requests
我正在使用 Zuul 作为使用 Spring Boot 部署为服务的反向代理。我的配置如下:
zuul:
routes:
home:
path: /**
url: localhost:8080
但我想使用 zuul 服务器的 /routes,/info,/health 端点。我还想向 zuul 服务器添加一些端点。问题是我丢失了那些端点,因为所有请求都被路由到 localhost:8080.
最新版本 ZUUL 中的 ignoredPatterns 可以帮助防止到达 /** 映射:
zuul:
ignoredPatterns: "/routes/**,/info/**,/custom/**"
我正在使用 Zuul 作为使用 Spring Boot 部署为服务的反向代理。我的配置如下:
zuul:
routes:
home:
path: /**
url: localhost:8080
但我想使用 zuul 服务器的 /routes,/info,/health 端点。我还想向 zuul 服务器添加一些端点。问题是我丢失了那些端点,因为所有请求都被路由到 localhost:8080.
最新版本 ZUUL 中的 ignoredPatterns 可以帮助防止到达 /** 映射:
zuul:
ignoredPatterns: "/routes/**,/info/**,/custom/**"