← Quiz: Validation and Errors: all 10 questions
Quiz: Validation and Errors · Question 3 of 10
What is @RestControllerAdvice for?
What is @RestControllerAdvice for?
- A.Adding new REST endpoints
- B.Handling exceptions from all controllers in one place
- C.Logging every request
- D.Validating database entities
Answer & explanation
Correct answer: Handling exceptions from all controllers in one place
Combined with @ExceptionHandler methods.
Can you get the rest right without peeking?
Take the timed Quiz: Validation and Errors quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →