Package org.aoju.bus.validate.annotation
Annotation Interface In
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,PARAMETER,FIELD})
@Complex(value="In",
clazz=InStrategy.class)
public @interface In
字符串在数组中
默认被校验对象是null时,通过校验
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Optional Element Summary
Optional Elements
-
Element Details
-
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"
-