Spring MVC模型属性在使用Browser back按钮时丢失

时间:2014-10-10 16:47:43

标签: spring spring-mvc

目前我们使用最初似乎工作的flashhattributes填充以下方法,但是如果我们点击链接离开网站然后点击后退按钮,则所有模型属性都将丢失。有没有办法记住背面的所有模型属性?

@RequestMapping(value = "/confirm", method = RequestMethod.GET)
public String showConfirm(HttpSession session, ModelMap model) {
    return "products/confirm";
}

0 个答案:

没有答案