Is there ant way to modify a method like this:
@RequestMapping(value="/{pagina}")
public String pagina(Model model, @PathVariable("pagina") String pagina) {
return "public/pagina";
}
for allow handle an unknwon number of @PathVariable parameter? I want urls like this:
/<server>/<app>/<path>/.../<path>
be handled this way:
- the last path variable attribute should be stored in a separated variable;
- the other path varaiables should be stored in a ArrayList.
anyone knows if this is possible?
HandlerMethodArgumentResolver.