spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.

Home Page:http://cloud.spring.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Declarative Gateway Filter Factory for MVC

khannedy opened this issue · comments

currently to create filter, we need to use WebMVC function, and it's programmatic, we need to use Java Code : https://docs.spring.io/spring-framework/reference/web/webmvc-functional.html#webmvc-fn-router-functions

In gateway reactive, we have Gateway Filter Factory per route : https://docs.spring.io/spring-cloud-gateway/reference/spring-cloud-gateway/developer-guide.html#writing-custom-gatewayfilter-factories

And use Gateway Filter Factory using properties (declarative)

it's better we also have this for Gateway MVC

I will not be creating a gateway filter factory for mvc