在第一个控制器中使用Map传递参数给下一个控制器:
Map map= new HashMap();
map.put("name", "aaa");
map.put("password", "bbb");
return new ModelAndView(new RedirectView("xxx.do"), map);
在xxx.do这个控制器中使用:
String name= request.getParameter("userName");
String password= request.getParameter("password");
取出数据!