Shiro获取当前登录的用户信息,User是ream中登录时放进去的对象信息
User user = (User) SecurityUtils.getSubject().getPrincipal();
转载于:https://blog.51cto.com/1197822/2324183
Shiro获取当前登录的用户信息,User是ream中登录时放进去的对象信息
User user = (User) SecurityUtils.getSubject().getPrincipal();
转载于:https://blog.51cto.com/1197822/2324183