Spring Boot · Medium
What is the difference between @ExceptionHandler and @ControllerAdvice?
Spring BootREST APIsException HandlingSeniorStaff
Answer preview
@ExceptionHandler — annotates a method that handles a specific exception. When placed inside a controller, it handles exceptions thrown only by that controller.…