cn.ipokerface.common.validation.constraint.NotNull Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-beans Show documentation
Show all versions of common-beans Show documentation
Common Library of ipokerface
package cn.ipokerface.common.validation.constraint;
import cn.ipokerface.common.validation.validator.Constraint;
import cn.ipokerface.common.validation.validator.NotNullConstraintValidator;
import java.lang.annotation.*;
/**
* Created by PokerFace
* Create Date 2019-11-25.
* Email: [email protected]
* Version 1.0.0
*
* Description: This constraint requires value not null object != null
*/
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validator = NotNullConstraintValidator.class)
public @interface NotNull{
String message() default "Can not be null!";
Class>[] groups() default { };
}