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

org.chobit.common.validation.SelfCheck Maven / Gradle / Ivy

The newest version!
package org.chobit.common.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * 完全依赖自定义的检查
 * 

* 该注解可以用在任何一个返回值类型为Boolean的方法上 * * @author robin */ @Documented @Constraint( validatedBy = {SelfCheckValidator.class} ) @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface SelfCheck { Class[] groups() default {}; Class[] payload() default {}; /** * 提示消息 * * @return 提示消息 */ String message() default "无法通过校验"; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy