
Understanding @ControllerAdvice annotation
@ControllerAdvice is a sub type of @Component annotation and it useful to handle exceptions across the whole application in a single place. When to use @ControllerAdvice? If you have number of controllers, handling exception from each controller method is a Read more