diff --git a/docs/modules/ROOT/assets/images/spring_cloud_gateway_mvc_diagram.png b/docs/modules/ROOT/assets/images/spring_cloud_gateway_mvc_diagram.png new file mode 100644 index 0000000000..aff9ba45b7 Binary files /dev/null and b/docs/modules/ROOT/assets/images/spring_cloud_gateway_mvc_diagram.png differ diff --git a/docs/modules/ROOT/pages/spring-cloud-gateway-server-mvc/how-it-works.adoc b/docs/modules/ROOT/pages/spring-cloud-gateway-server-mvc/how-it-works.adoc index 874e680752..cc2a41da58 100644 --- a/docs/modules/ROOT/pages/spring-cloud-gateway-server-mvc/how-it-works.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-gateway-server-mvc/how-it-works.adoc @@ -4,8 +4,7 @@ The following diagram provides a high-level overview of how Spring Cloud Gateway works: -// TODO: gateway mvc diagram -//image::spring_cloud_gateway_diagram.png[Spring Cloud Gateway Diagram] +image::spring_cloud_gateway_mvc_diagram.png[Spring Cloud Gateway Server MVC Diagram] In Spring Cloud Gateway Server MVC routes are normal WebMvc.fn `RouterFunction` instances with a special https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/servlet/function/HandlerFunction.html[HandlerFunction] to forward the requests over HTTP defined in https://github.com/spring-cloud/spring-cloud-gateway/blob/main/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/handler/HandlerFunctions.java[org.springframework.cloud.gateway.server.mvc.handler.HandlerFunctions]. Please see the https://docs.spring.io/spring-framework/reference/web/webmvc-functional.html[WebMvc.fn] documentation for regular use of the functional API. diff --git a/docs/modules/ROOT/partials/_configprops.adoc b/docs/modules/ROOT/partials/_configprops.adoc index 7b6c286ac7..d5550b3f82 100644 --- a/docs/modules/ROOT/partials/_configprops.adoc +++ b/docs/modules/ROOT/partials/_configprops.adoc @@ -123,6 +123,7 @@ |spring.cloud.gateway.predicate.cookie.enabled | `+++true+++` | Enables the cookie predicate. |spring.cloud.gateway.predicate.header.enabled | `+++true+++` | Enables the header predicate. |spring.cloud.gateway.predicate.host.enabled | `+++true+++` | Enables the host predicate. +|spring.cloud.gateway.predicate.host.include-port | `+++true+++` | Include the port in matching the host name. |spring.cloud.gateway.predicate.method.enabled | `+++true+++` | Enables the method predicate. |spring.cloud.gateway.predicate.path.enabled | `+++true+++` | Enables the path predicate. |spring.cloud.gateway.predicate.query.enabled | `+++true+++` | Enables the query predicate.