How to Include Spring Cloud Gateway Server MVC

To include Spring Cloud Gateway Server MVC in your project, use the starter with a group ID of org.springframework.cloud and an artifact ID of spring-cloud-starter-gateway-mvc. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train.

If you include the starter, but you do not want the gateway to be enabled, set spring.cloud.gateway.mvc.enabled=false.

Spring Cloud Gateway Server MVC is built on Spring Boot and Spring WebMvc.fn. As a consequence, many of the asynchronous or reactive libraries may not apply when you use Spring Cloud Gateway Server MVC.
Spring Cloud Gateway Server MVC works with traditional Servlet runtimes such as Tomcat and Jetty.