Is there a way to tell Spring to map request to different method by the type of path variable, if they are in the same place of the uri?
For example,
@RequestMapping("/path/{foo}")
@RequestMapping("/path/{id}")
if foo is supposed to be string, id is int, is it possible to map correctly instead of looking into the request URI?