Polish contribution

See gh-25137
This commit is contained in:
Sam Brannen 2020-05-27 16:18:11 +02:00
parent d6cab259c3
commit 3cbc297fc6
1 changed files with 4 additions and 7 deletions

View File

@ -1408,10 +1408,7 @@ You can map requests by using glob patterns and wildcards:
| `+?+` | `+?+`
| Matches one character | Matches one character
| `+"/pages/t?st.html"+` | `+"/pages/t?st.html"+` matches `+"/pages/test.html"+` and `+"/pages/t3st.html"+`
matches `+"/pages/test.html"+`
and `+"/pages/t3st.html"+`
| `+*+` | `+*+`
| Matches zero or more characters within a path segment | Matches zero or more characters within a path segment
@ -1435,7 +1432,7 @@ and `+"/pages/t3st.html"+`
| `+{*path}+` | `+{*path}+`
| Matches zero or more path segments until the end of the path and captures it as a variable named "path" | Matches zero or more path segments until the end of the path and captures it as a variable named "path"
| `+"/resources/{*file}"+` matches `+"/resources/images/file.png"+` and captures `+file=/images/file.png+` | `+"/resources/{*file}"+` matches `+"/resources/images/file.png"+` and captures `+file=images/file.png+`
|=== |===
@ -1502,8 +1499,8 @@ URI variables can be named explicitly (for example, `@PathVariable("customId")`)
leave that detail out if the names are the same and you compile your code with debugging leave that detail out if the names are the same and you compile your code with debugging
information or with the `-parameters` compiler flag on Java 8. information or with the `-parameters` compiler flag on Java 8.
The syntax `{*varName}` declares a URI variable that matches zero or more remaining The syntax `{*varName}` declares a URI variable that matches zero or more remaining path
path segments. For example `/resources/{*path}` matches all files `/resources/` and the segments. For example `/resources/{*path}` matches all files under `/resources/`, and the
`"path"` variable captures the complete relative path. `"path"` variable captures the complete relative path.
The syntax `{varName:regex}` declares a URI variable with a regular expression that has the The syntax `{varName:regex}` declares a URI variable with a regular expression that has the