Annotation Interface False


boolean校验, 当校验值为false时通过校验
Since:
Java 17+
Author:
Kimi Liu
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    默认使用的异常码
    默认使用的异常信息
    被校验字段名称
    校验器组
    boolean
    当参数为null时,是否允许通过校验 true:校验通过
  • Element Details

    • nullable

      boolean nullable
      当参数为null时,是否允许通过校验 true:校验通过
      Returns:
      the boolean
      Default:
      true
    • errcode

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

      String errmsg
      默认使用的异常信息
      Returns:
      the string
      Default:
      "${field}\u53ea\u80fd\u4e3afalse"
    • group

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

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