Package org.aoju.bus.validate.annotation
Annotation Interface Equals
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,PARAMETER,FIELD})
@Complex(value="Equals",
clazz=EqualsStrategy.class)
public @interface Equals
字符串equals
默认被校验对象是null时,通过校验
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
errcode
String errcode默认使用的异常码- Returns:
- the string
- Default:
"-1"
-
errmsg
String errmsg默认使用的异常信息- Returns:
- the string
- Default:
"${field}\u5fc5\u987b\u7b49\u4e8e\u6307\u5b9a\u5b57\u7b26:${value}"
-
group
String[] group校验器组- Returns:
- the array
- Default:
{}
-
field
String field被校验字段名称- Returns:
- the string
- Default:
"field"
-