Controller Advice — Exception Handler in Spring Boot

In this post, I will show how we can use the annotation @ControllerAdvice — Controller Advice — an exception handler in the Spring Boot application. If you want to read how to handle uncaught exceptions in Spring Boot, you can check my old post.

What is @ControllerAdvice ?