When you have a controller that does logic with services and DAO\'s that may throw an unrecoverable exception, what is the best practice in dealing with those method calls?<
Check out the @ExceptionHandler
You can use it like
@ExceptionHandler(IOException.class) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) public void handleExc(IOException ext) {}
That would catch all IOExceptions thrown by the controller method and write out a 500 to the response.