慕前端500899
2021-04-07 14:56
在MyMetaObjectHandler类中。
Object account = RequestContextHolder.getRequestAttributes()
.getAttribute("templates/account", RequestAttributes.SCOPE_SESSION);
发现获取到的account总是为空?
在登录时候已经将account数值报错在Session中。
不知道为什么多次测试上面方法无法获取account的数据?
你保持在Session中的accout对象的名称是"templates/account"?是不是应该写成account啊,你写错了。
MyBatis-Plus + SpringBoot实现简单权限管理
12978 学习 · 133 问题
相似问题