For creating a custom constraint annotation in Spring Boot, the annotation should be annotated with _____.

  • @Constraint
  • @ConstraintAnnotation
  • @CustomConstraintAnnotation
  • @CustomValidation
In Spring Boot, to create a custom constraint annotation, the annotation itself should be annotated with @Constraint. This indicates to Spring Boot that the annotation is intended to be used as a validation constraint. You can then define your custom validation logic within the annotation class. This allows you to create custom validation rules in Spring Boot.
Add your answer
Loading...

Leave a comment

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