Please help me write it in a better way.
Things that i want to avoid :
1) I have manually put \" at many places in both the strings contentCss and htmlBody
2) Handling of exception. Is it possible to move it out of controller?
I am extending my controller with a basecontroller where i am handling other exceptions like :
@ExceptionHandler(EmptyResultDataAccessException.class) public ResponseEntity<String> handleServerException(EmptyResultDataAccessException e) { String message = "Page not found"; logger.error(message, e); return new ResponseEntity<String>(message, HttpStatus.NOT_FOUND); }
Hi mccarl,
As you mentioned :
So UTF-8 is a character encoding that Java has specified that ALL implementations MUST support
Where can i see this on java docs or official site ?
As you mentioned :
So UTF-8 is a character encoding that Java has specified that ALL implementations MUST support
Where can i see this on java docs or official site ?