Spring Boot - Request and Response Handling
A developer wants to validate a query parameter in a Spring Boot controller method. Which is the correct way to do this?
@Validated on the controller to activate validation.@NotNull on the query parameter triggers validation of constraints like @NotNull.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions