1.1 Save the data to the session scoped way .
- Use the original HttpSession save.
- Use annotations @SessionAttributes (name = {key1, key2 })
@RequestMapping("toDate.do") public String todate2(HttpSession session) { session.setAttribute("name","jk"); return "login"; }
Another is that nothing changed, write notes in class
@SessionAttributes(names= {"name"})