When creating a Custom Validator in Spring Boot, the isValid method must return _____ to indicate whether the value meets the constraint.

  • FALSE
  • TRUE
  • a boolean value
  • void
When creating a Custom Validator in Spring Boot, the isValid method must return void to indicate whether the value meets the constraint. The isValid method is used to perform the validation logic, and it should not return a boolean value directly. Instead, it should use the provided ConstraintValidatorContext to report validation errors.
Add your answer
Loading...

Leave a comment

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