How do you create custom zuul filters in spring cloud
Create a @Bean that extends ZuulFilter. See java configuration examples here. As long as the bean is in the same context as the @EnableZuulProxy app, it will automatically get picked up. @Bean public MyFilter myFilter() { return new MyFilter(); } See examples of filters here. public class MyFilter extends ZuulFilter { //… } There are … Read more