List of usage examples for org.springframework.web.context.request NativeWebRequest getRemoteUser
@Nullable String getRemoteUser();
From source file:org.wte4j.ui.server.services.RestExceptionHandler.java
@Order(Ordered.LOWEST_PRECEDENCE) @ExceptionHandler(RuntimeException.class) public String handleRuntimeException(final RuntimeException e, NativeWebRequest request) { logger.error("error on processing request from {} ", request.getRemoteUser(), e); return fileUploadResponseFactory.createJsonErrorResponse(MessageKey.INTERNAL_SERVER_ERROR); }