Get user in Spring

SecurityContextHolder.getContext().authentication.name

No comments:

Post a Comment