@SessionAttributes的覆盖与加入

      在我们使用@SessionAttributes 注解向session加入对象时,当我们使用ModelMap的addAttribute()方法是指向session中加入一个新的对象。而使用HttpSession的setAttribute()方法能够覆盖session中同样的key的value。

原文地址:https://www.cnblogs.com/gccbuaa/p/6961373.html