Annotation Interface In


字符串在数组中

默认被校验对象是null时,通过校验

Since:
Java 17+
Author:
Kimi Liu
  • Element Details

    • value

      @Filler("value") String[] value
      Default:
      {}
    • errcode

      String errcode
      默认使用的异常码
      Returns:
      the string
      Default:
      "-1"
    • errmsg

      String errmsg
      默认使用的异常信息
      Returns:
      the string
      Default:
      "${field}\u5fc5\u987b\u5728\u6307\u5b9a\u5b57\u7b26\u4e32\u4e2d: ${value}"
    • group

      String[] group
      校验器组
      Returns:
      the array
      Default:
      {}
    • field

      String field
      被校验字段名称
      Returns:
      the string
      Default:
      "field"