SpringMVC利用return new ModelAndView(new RedirectView("xxx.do"), Map map)重定向传递多参数

SpringMVC利用return new ModelAndView(new RedirectView("xxx.do"), Map map)重定向传递多参数


Map map= new HashMap();
map.put("userName", "username");
map.put("pwd", "123456");
return new ModelAndView(new RedirectView("xxx.do"), map);


在下个控制器里取出数据:
String userName = request.getParameter("userName");

猜你喜欢

转载自maidouchina.iteye.com/blog/2003217
new