In Spring Boot, to apply validation constraints on a field, the _____ annotation is used along with specific constraint annotations.

  • @Constraint
  • @ConstraintValidation
  • @Validated
  • @Validation
In Spring Boot, the @Validated annotation is used along with specific constraint annotations like @NotBlank, @Min, @Max, etc., to apply validation constraints on a field. The @Validated annotation indicates that the validation should be performed on the annotated field or method parameter. It is a fundamental part of Spring Boot's validation framework.
Add your answer
Loading...

Leave a comment

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