-
Spring MVC 3.0实战指南中的访问数据模型:ModelAndView
资源介绍
访问数据模型: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企业应用开发实战》
*