我正在使用Spring3.2.0MVC。因为我必须将一个对象存储到session中。目前我正在使用HttpSessionset和get属性来存储和检索值。它只返回字符串而不是对象。当我尝试在session中设置对象时,我想使用@SessionAttribute但我无法检索session对象@RequestMapping(value="/sample-login",method=RequestMethod.POST)publicStringgetLoginClient(HttpServletRequestrequest,ModelMapmodelMap){StringuserName=r