Package org.aoju.bus.validate.annotation
Annotation Interface Compare
参数值比较验证注解
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
cond
Compare.Cond cond- Returns:
- 比较的条件
- Default:
EQ
-
with
String with- Returns:
- 与之比较的参数名称
-
errcode
String errcode默认使用的异常码- Returns:
- the string
- Default:
"-1"
-
errmsg
String errmsg默认使用的异常信息- Returns:
- the string
- Default:
"${field}\u53c2\u6570\u4e0d\u7b26\u5408\u89c4\u5219"
-
group
String[] group校验器组- Returns:
- the array
- Default:
{}
-
field
String field被校验字段名称- Returns:
- the string
- Default:
"field"
-