Which interface in Spring Boot is used to create custom validators for a class?

  • Validator
  • Validatable
  • ValidationInterface
  • SpringValidator
In Spring Boot, the interface used to create custom validators for a class is Validator. You can implement this interface to define custom validation logic for your domain objects. It allows you to specify the conditions under which an object is considered valid. The other options (Validatable, ValidationInterface, and SpringValidator) are not standard Spring Boot interfaces for creating custom validators.
Add your answer
Loading...

Leave a comment

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