如何引入 Spring Cloud Gateway 伺服器 Web MVC

要將 Spring Cloud Gateway Server Web MVC 包含到您的專案中,請使用 group ID 為 org.springframework.cloud 且 artifact ID 為 spring-cloud-starter-gateway-server-webmvc 的 starter。有關如何使用當前 Spring Cloud Release Train 設定構建系統的詳細資訊,請參閱 Spring Cloud 專案頁面

如果您包含了 starter,但不想啟用閘道器,請設定 spring.cloud.gateway.server.webmvc.enabled=false

Spring Cloud Gateway Server MVC 基於 Spring BootSpring WebMvc.fn 構建。因此,當您使用 Spring Cloud Gateway Server MVC 時,許多非同步或響應式庫可能不適用。
Spring Cloud Gateway Server MVC 可與傳統的 Servlet 執行時(如 Tomcat 和 Jetty)配合使用。
© . This site is unofficial and not affiliated with VMware.