Creating specific exception handling in a Controller

In some situations, there is a need for specific exception handling in a Controller. This situation can easily be handled by implementing a method annotated with @ExceptionHandler(value = Exception.class).

In case specific exception handling is required only for a specific exception, the specific Exception class can be provided as the value for the value attribute of the annotation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset