Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();UserDetails userDetails = (UserDetails)principal;log.debug(userDetails.getUsername());