I have been reading on Spring 3.2 lately and I am now trying the following code using Spring 2.5. From what I have read this should mean that it should map profile/tags/me
. However it doesn't. It just throws a No mapping found for HTTP request with URI ...
. What is wrong with the code, or didn't Spring 2.5 work like it does in Spring 3?
Problem when using Spring 2.5
@Controller
@RequestMapping("/profile/tags")
public class ProfileController { ... }
And this is the method inside ProfileController class:
@RequestMapping(value = "/me", method = RequestMethod.GET)
public String show(@RequestParam final long id, final ModelMap model) { ... }