Verifier.java 435 B

123456789101112131415161718192021
  1. package cn.com.ty.lift.common.verify;
  2. import java.lang.annotation.*;
  3. /**
  4. * <p>
  5. * 标记需要检验参数
  6. * </p>
  7. * @author wcz
  8. * @since 2020/1/27 9:35
  9. */
  10. @Target({ElementType.METHOD,ElementType.PARAMETER})
  11. @Retention(RetentionPolicy.RUNTIME)
  12. @Documented
  13. public @interface Verifier {
  14. /**
  15. * 标注在method上,指定fields,需要校验的对象属性 include,exclude
  16. */
  17. String[] fields() default {};
  18. }