I have a class as follows:
@Controller
@RequestMapping("/path1")
public class MyController
{
@RequestMapping(value = "/path2", method = RequestMethod.GET)
public ModelAndView func(ModelAndView mav)
{
String path = getRequestMappingValue(); // Here I expect a function which returns "/path1/path2"
mav.setViewName(path + ".jsp");
return mav;
}
}
What I require is the function getRequestMappingValue(), which returns the value of annotation @RequestMapping (in this case, it is "/path1/path2")