business-card/src/main/java/cn/com/tenlion/util/check/CheckNullAnnotation.java

24 lines
503 B
Java
Raw Normal View History

package com.cm.common.annotation;
import java.lang.annotation.*;
/**
* When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始
*
* @ClassName: CheckNullAnno
* @Description: 字段为空校验
* @Author: WangGeng
* @Date: 2019/11/14 11:31
* @Version: 1.0
**/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface CheckNullAnnotation {
String name();
String[] types() default {};
}