Creating custom Zuul filters

前端 未结 1 524
小鲜肉
小鲜肉 2020-12-09 22:41

I want to implement custom filters for my Zuul proxy. Now, I know there has been a lot of talking about that subject here and I took a look at the answer provided, with the

相关标签:
1条回答
  • 2020-12-09 23:08

    Look at PreDecorationFilter for an example that matches routes based on the url path (ie /myservice). If it matches a full url it sets the routeHost in the ribbon context, otherwise it sets serviceId (which would use ribbon to route). You would need to write something similar that would match on parameter instead.

    0 讨论(0)
提交回复
热议问题