Regression in @RequestMapping parsing path variable in the url [SPR-6532] #11198
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
Youen Chéné opened SPR-6532 and commented
Hi i've got the this spring mvc code which works fines with RC2.
@RequestMapping
(value={"/product-{id}.html","/product-{id}-{name}.html"})public String showProduct(
@PathVariable
String id,@RequestParam
(value="loc",required=false) String location,Model model)When I am switching with RC3, it is only handle the /product-{id}.html url pattern and not the /product-{id}-{name}.html pattern. In fact with this last pattern it try to put {id}-{name} in the id path variable instead of just put {id}.
Sorry, if it is a duplicate, after a quick looking it dot not seems to be one.
Affects: 3.0 RC3
The text was updated successfully, but these errors were encountered: