在MyMetaObjectHandler类中。
Object account = RequestContextHolder.getRequestAttributes()
.getAttribute("templates/account", RequestAttributes.SCOPE_SESSION);
发现获取到的account总是为空?
在登录时候已经将account数值报错在Session中。
不知道为什么多次测试上面方法无法获取account的数据?你保持在Session中的accout对象的名称是"templates/account"?是不是应该写成account啊,你写错了。