If you annotate the main class with @EnableZuulProxy, Spring Cloud Zuul loads the filter beans used by both SimpleRouteLocator and DiscoveryClientRouteLocator. This is a list of the most important implementations installed as normal Spring Beans:
- ServletDetectionFilter: This is a pre filter. It checks whether the request is coming through the Spring Dispatcher. Sets a Boolean with the key FilterConstants.IS_DISPATCHER_SERVLET_REQUEST_KEY.
- FormBodyWrapperFilter: This is a pre filter. It parses form data and re-encodes it for downstream requests.
- PreDecorationFilter: This is a pre filter. It determines where and how to route based on the supplied RouteLocator. It is also responsible for setting headers related to the proxy. ...