I have a url say /prefix/part1/part2/.../partN/suffix and in a controller i want to map anything between /prefix/ and /suffix to one variable.
Approaches tried
@RequestMapping(value = "/prefix/{store:[\s\S]*}/suffix",
method = RequestMethod.GET)
Also, tried regex : (.*), The interesting part is i don't know what N is. So, cant explicitly specify number of slashes possible.
 
Aucun commentaire:
Enregistrer un commentaire