- 博客(1)
- 资源 (4)
- 收藏
- 关注
原创 Spring Security 获取登入用户
SecurityContext sc = SecurityContextHolder.getContext(); Authentication auth = sc.getAuthentication(); // 登入用户信息 User user = (User) auth.getPrincipal(); log.info("用户user...
2014-06-22 12:33:00
255
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人