I would like to use Spring MVC @RequestMapping
annotation to attach my controller to requests in such way:
@RequestMapping(method = RequestMethod.GET, value="/prod/{value:.+}/show")
public String getProduct(
@PathVariable("value") String value,
ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) {
...
}
and when request will be
(..)/prod/foo/show
my value variable will have foo
and when request will be
(..)/prod/foo/bar/show
my value variable will have foo/bar
etc
Is there any way to do that? What @RequestMapping
wildcards are supported?