Google News
logo
Java Spring Boot - Interview Questions
How to handle exceptions in spring boot?
To handle exceptions in spring boot, you can use @ControllerAdvice annotation to handle your exceptions globally.
 
In order to handle specific exception and send customized response, you need to use @ExceptionHandler annotation.
Advertisement