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  阅读(1536)  评论(0)    收藏  举报