@RequestMapping(value = "/page", method = RequestMethod.GET)
public ModelAndView pageGet() {
return new ModelAndView("page");
}
或
@RequestMapping(value = "/page", method = RequestMethod.GET)
public ModelAndView pageGet() {
return new ModelAndView("redirect:"+page);
}
你要是配置好的话这么写就行,跳到page.jsp或是你配置的,这俩跳转的区别你试下就知道了