spring-framework / org.springframework.web.context.support / RequestHandledEvent / getUserName

getUserName

@Nullable open fun getUserName(): String

Return the name of the user that was associated with the request (usually the UserPrincipal).

See Also
javax.servlet.http.HttpServletRequest#getUserPrincipal()