apache shiro 如何获取登录信息

apache shiro 如何获取登录信息

UserInformation user = (UserInformation) SecurityUtils.getSubject().getPrincipal();

UserInformation : 配置的登录信息自动映射.

猜你喜欢

转载自blog.csdn.net/weixin_41905643/article/details/85339568
今日推荐