Merge branch '2.1.x'

# Conflicts:
#	spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/actuate/GatewayControllerEndpointTests.java
This commit is contained in:
Olga Maciaszek-Sharma
2019-09-18 12:45:32 +02:00
7 changed files with 185 additions and 14 deletions

View File

@@ -847,7 +847,7 @@ spring:
predicates:
- Path=/foo/**
filters:
- RewritePath=/foo/(?<segment>.*), /$\{segment}
- RewritePath=/foo(?<segment>/?.*), $\{segment}
----
For a request path of `/foo/bar`, this will set the path to `/bar` before making the downstream request. Notice the `$` Should be replaced with `$\` because of the YAML spec.