2 qq 35561866 qq_35561866 于 2017.01.07 23:54 提问

请问return view("usercenter/indexguide", model);

@RequestMapping(value = "userindex")
private ModelAndView indexguidetwo(Model model, HttpServletRequest request, HttpServletResponse response) {
model.addAttribute("backurl", request.getParameter("ret"));
.......
.......

return view("usercenter/indexguide", model);
}
其中return view("usercenter/indexguide", model);这段代码是什么意思???

2个回答

u010528826
u010528826   2017.01.08 00:17
已采纳

意思就是告诉控制器,在request域写入值(request.setAtt...)
并跳转到 .../usercenter/indexguide.jsp(request.getDispatcher...(" .../usercenter/indexguide.jsp").forward(request,reponse))

devmiao
devmiao   Ds   Rxr 2017.01.07 23:57

返回usercenter/indexguide这个视图,并且传入model作为模型

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!