我想知道确切的scenerio我们可以在哪里声明与get和post相同的方法? 我已经使用了这个案子,但仍然无法找到正确的解释
@RequestMapping(value =url, method = RequestMethod.POST)
public ModelAndView fetchLrmPart1(Model model, HttpServletRequest request)
{
return this.getPart1Page(request, model);
}
@RequestMapping(value = url, method = RequestMethod.GET)
public ModelAndView fetchLRMGet(Model model, HttpServletRequest request)
{
return this.getPart1Page(request, model);
}