white knight

导航

 

System.out.println(((User)SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getName());

 

${session.SPRING_SECURITY_CONTEXT.authentication.principal.name}

posted on 2018-05-02 13:33  white knight  阅读(1479)  评论(0编辑  收藏  举报