From 51137c26109b87d0b87d10c3947239eb1457b0e6 Mon Sep 17 00:00:00 2001 From: Oliver <9936979+oguera@users.noreply.github.com> Date: Thu, 19 May 2022 12:19:24 +0200 Subject: [PATCH] Update documentation for path route predicate --- docs/src/main/asciidoc/spring-cloud-gateway.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index df165283..d66e07c1 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -301,7 +301,7 @@ The following example shows how to use the `get` method: ==== [source,java] ---- -Map uriVariables = ServerWebExchangeUtils.getPathPredicateVariables(exchange); +Map uriVariables = ServerWebExchangeUtils.getUriTemplateVariables(exchange); String segment = uriVariables.get("segment"); ----