com.veeker.validation.annotations.BankCardInvalid Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of veeker-validation Show documentation
Show all versions of veeker-validation Show documentation
Veeker Boot Validation package
The newest version!
package com.veeker.validation.annotations;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE_USE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* 银行卡卡号约束
*
* @author :qiaoliang
*/
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE })
@Retention(RUNTIME)
@Constraint(validatedBy= BankCardInvalidImpl.class)
public @interface BankCardInvalid {
String message() default "银行卡卡号格式不正确,请重新输入!";
Class>[] groups() default { };
Class extends Payload>[] payload() default { };
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy