在 Spring 中使用 Zuul 进行动态路由

时间:2021-05-06 13:34:06

标签: spring-boot netflix-zuul

我有如下zuul路线

zuul.routes.myroute.path=/route/**   (the ** part will be where an ID is passed)
zuul.routes.myroute.url=http://{id from above}.myserver.com:8080 

我该如何动态完成这条路线?我知道我应该使用过滤器,但我不确定它是前置过滤器还是路由过滤器。有谁有例子吗?

谢谢

0 个答案:

没有答案