Package org.aoju.bus.validate.annotation
Annotation Interface False
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,PARAMETER,FIELD})
@Complex(value="False",
clazz=FalseStrategy.class)
public @interface False
boolean校验, 当校验值为false时通过校验
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Optional Element Summary
Optional Elements
-
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"
-