1 2 3 4 5 6 7 8 9 10 11 12 |
场景:SpringMVC利用return new ModelAndView(new RedirectView("xxx.do"), Map 地图 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"); |
未经允许不得转载:Java学习 » SpringMVC跳转带参数(转发)