Hi,
I have several (albeit related) questions about Spring MVC RequestMapping configuration:
- Say I have a type-level RequestMapping annotation as follows:
What is the difference between adding this method-level RequestMapping:Code:@RequestMapping("/root/")and that one?Code:@RequestMapping(value="leaf")Notice the leading slash in second method-level mapping.Code:@RequestMapping(value="/leaf")
- What is the difference between having this type-level RequestMapping:
and that one ?Code:@RequestMapping("/root/")Notice the star in second mapping.Code:@RequestMapping("/root/*")
- Say I already have a type-level RequestMapping annotation. How do I override the type-level mapping at the method-level so that the type-level mapping is ignored (for a given controller)?
Regards,
Julien.


Reply With Quote
