@RequestMapping("/mapping") public RedirectView edit(HttpServletRequest request, ModelMap model) throws Exception { for (Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) { model.put(entry.getKey(), entry.getValue()); } RedirectView redirectView = new RedirectView(); redirectView.setUrl("http://www.XXXX.com/a/b/c"); redirectView.setStatusCode(HttpStatus.TEMPORARY_REDIRECT); // redirectView.setHttp10Compatible(Boolean.TRUE); return redirectView; }
POST 重定向
猜你喜欢
转载自liloi.iteye.com/blog/2339778
今日推荐
周排行