spring-mvcException Handling


Syntax

  • @ExceptionHandler(ExceptionToBeHandled.class)
  • @ExceptionHandler({ExceptionToBeHandled.class, AnotherExceptionToBeHandled.class})