Issue:
Created 2 mappings as following in the controller, code is in Controller .javaof the attached project.
@GetMapping("/foo/**")
public ResponseEntity getFoo() {}
@GetMapping("/foo/**/bar")
public ResponseEntity getFooBar() {}
- In
webmvc whenever request comes as /foo/1/2/3/bar (as far as last path segment
is bar) it maps to getFooBar.
- If
bar is not specified ast last path segment then it maps to getFoo. i.e all foo/1, foo/1/2, foo/ab/cd.... maps to getFoo.
- The issue is in webflux, when I switch to
webflux all mappings map to
getFoo. No matter if path consists of bar in the last path segment.
- For eg.
/foo/ab/cd/bar maps to getFoo instead of getFooBar.
Uploaded the project here , to switch between webflux and webmvc please comment out
appropriate starter dependency in pom.xml.
Notes:
Issue:
Created 2 mappings as following in the controller, code is in
Controller .javaof the attached project.webmvcwhenever request comes as/foo/1/2/3/bar(as far as last path segmentis
bar) it maps togetFooBar.baris not specified ast last path segment then it maps togetFoo. i.e allfoo/1,foo/1/2,foo/ab/cd.... maps togetFoo.webfluxall mappings map togetFoo. No matter if path consists ofbarin the last path segment./foo/ab/cd/barmaps togetFooinstead ofgetFooBar.Repro project here : https://github.com/kaladhar-mummadi/demo-issue
Notes:
/bla/**/bla, which are not covered inPathPatternTests of WebFlux.