How can I get logged user ID in JHipster : Not the Username

前端 未结 0 1358
甜味超标
甜味超标 2021-01-21 18:43
public static String getCurrentUserId() {
    SecurityContext securityContext = SecurityContextHolder.getContext();
    Authentication authentication = securityContext.g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题