Skip to content

Commit e1c008f

Browse files
maziyarbahramianbclozel
authored andcommitted
Fix URI Patterns docs for WebMVC and WebFlux
Closes gh-35551 Signed-off-by: Maziyar Bahramian <maziyar.bahramian@gmail.com>
1 parent cb849a7 commit e1c008f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

framework-docs/modules/ROOT/pages/web/webflux/controller/ann-requestmapping.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ You can map requests by using glob patterns and wildcards:
112112
| `+{name}+`
113113
| Matches a path segment and captures it as a variable named "name"
114114
| `+"/projects/{project}/versions"+` matches `+"/projects/spring/versions"+` and captures `+project=spring+`
115+
`+"/projects/{project}/versions"+` does not match `+"/projects/spring/framework/versions"+` as it captures a single path segment.
115116

116-
| `+{name:[a-z]+}+`
117-
| Matches the regexp `+"[a-z]+"+` as a path variable named "name"
118-
| `+"/projects/{project:[a-z]+}/versions"+` matches `+"/projects/spring/versions"+` but not `+"/projects/spring1/versions"+`
117+
| `{name:[a-z]+}`
118+
| Matches the regexp `[a-z]+` as a path variable named "name"
119+
| `/projects/{project:[a-z]+}/versions` matches `/projects/spring/versions` but not `/projects/spring1/versions`
119120

120121
| `+{*path}+`
121122
| Matches zero or more path segments until the end of the path and captures it as a variable named "path"

0 commit comments

Comments
 (0)