@RequestMapping(value = "/updateUser.jhtml", method = RequestMethod.POST)
public void updateUserDO(HttpSession session, Model model, User user,
HttpServletResponse response) throws IOException {
// userService.updateUser(user);
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
session.removeAttribute("loginUser");
response.getWriter().write(
"<script>top.location.href=\"login.jhtml\"</script>");
}
通过response挥写一段js揍实现了