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.
Loading...
Related Quiz
- What considerations should be taken into account when determining the Time-To-Live (TTL) of a cache in a Spring Boot application?
- Suppose you are developing a large enterprise application using Spring. How would you optimize the bean lifecycle to ensure minimal resource utilization and maximum performance?
- What is the main responsibility of an OAuth2 Authorization Server in a Spring Boot application?
- Which of the following annotations is used to map a web request to a specific handler method?
- You notice that a Spring Boot application is not evicting cache entries as expected, leading to outdated data being served. How would you diagnose and resolve this issue?