-
redirect시 POST방식 Attribute 전달하기Spring 2016. 9. 2. 15:52
Controller에서
redirect시 Attribute 전달하는 것은 GET방식이 수월하나
POST방식으로 전달하고자 할 때...
Spring MVC 3.1 이상에서 가능한...
public String xxx( xxVO xxxVO, ..., RedirectAttributes redirectAttributes ) throws Exception {
...
redirectAttributes.addFlashAttribute( "yyyVO", yyyVO );
return "redirect:/xxx.do";
}
'Spring' 카테고리의 다른 글
@ResponseBody없이 json 처리 (0) 2016.09.02 GsonHttpMessageConverter (0) 2016.09.02 Spring 4 gradle (0) 2015.12.16 댓글