Merge branch '5.2.x'

This commit is contained in:
Rossen Stoyanchev
2020-05-04 10:55:25 +01:00
9 changed files with 221 additions and 28 deletions

View File

@@ -1634,7 +1634,7 @@ extracts the name, version, and file extension:
.Java
----
@GetMapping("/{name:[a-z-]+}-{version:\\d\\.\\d\\.\\d}{ext:\\.[a-z]+}")
public void handle(@PathVariable String version, @PathVariable String ext) {
public void handle(@PathVariable String name, @PathVariable String version, @PathVariable String ext) {
// ...
}
----
@@ -1642,7 +1642,7 @@ extracts the name, version, and file extension:
.Kotlin
----
@GetMapping("/{name:[a-z-]+}-{version:\\d\\.\\d\\.\\d}{ext:\\.[a-z]+}")
fun handle(@PathVariable version: String, @PathVariable ext: String) {
fun handle(@PathVariable name: String, @PathVariable version: String, @PathVariable ext: String) {
// ...
}
----