소스 검색

增加annotation用于标识字段是否必填

master
BinaryWang 8 년 전
부모
커밋
b555cc3790
1개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. +19
    -0
      weixin-java-common/src/main/java/me/chanjar/weixin/common/annotation/Required.java

+ 19
- 0
weixin-java-common/src/main/java/me/chanjar/weixin/common/annotation/Required.java 파일 보기

@@ -0,0 +1,19 @@
package me.chanjar.weixin.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* 标识某个字段是否是必填的
*
* Created by Binary Wang on 2016/9/25.
* @author binarywang (https://github.com/binarywang)
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Required {

}

불러오는 중...
취소
저장