{{@Target( { TYPE, FIELD, ANNOTATION_TYPE } ) @Retention(RUNTIME) @Constraint(validatedBy = MyCustomAnnotationValidator.class) @Documented public @interface MyCustomAnnotation { String message() default " {MyCustomAnnotation} "; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; }}} |