spring-mvc Exception Handling


Syntax

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