The _____ annotation in Spring Boot is used to provide global exception handling across all @Controller classes.

  • @ControllerAdvice
  • @ExceptionHandler
  • @RequestMapping
  • @ResponseBody
To provide global exception handling across all @Controller classes in Spring Boot, you can use the @ControllerAdvice annotation. It allows you to define global exception handling logic that can be applied to multiple controllers.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *