com.zys.mybatis.annotation.validate.NotDistinctList Maven / Gradle / Ivy
package com.zys.mybatis.annotation.validate;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
/**
* 校验是否重复
* @author zys
* @version 1.0
* @date 2020/12/28 17:53
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER,ElementType.FIELD,ElementType.TYPE})
@Constraint(validatedBy = NotDistinctListClass.class)
public @interface NotDistinctList {
/**
* 提示信息
*/
String message() default "数据不能重复";
//约束注释
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy