@SessionAttributes的覆盖与加入

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

posted @ 2017-06-08 10:02  gccbuaa  阅读(284)  评论(0编辑  收藏  举报