All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vfd.springboot.validations.annotations.Email Maven / Gradle / Ivy

The newest version!
package org.vfd.springboot.validations.annotations;

import org.vfd.springboot.validations.validators.EmailValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ ElementType.FIELD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = EmailValidator.class)
public @interface Email {
    String message() default "must be a valid email";
    Class[] groups() default {};
    Class[] payload() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy