Spring Boot - Request and Response Handling
Which annotation is used to trigger validation on a request body object in a Spring Boot controller method?
@Valid annotation triggers validation on the annotated object, such as a request body DTO.@RequestBody binds the HTTP body to the object but does not trigger validation itself.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions