访问数据模型:ModelAndView
@RequestMapping(method = RequestMethod.POST)
public ModelAndView createUser(User user) {
userService.createUser(user);
ModelAndView mav = new ModelAndView();
mav.setViewName("user/createSuccess");
mav.addObject("user", user);
return mav;
}
通过ModelAndView
参考《Spring 3.x企业应用开发实战》
*
1