Package org.aoju.bus.validate.annotation
Annotation Interface Date
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,PARAMETER,FIELD})
@Complex(value="Date",
clazz=DateStrategy.class)
public @interface Date
判断是否为日期
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Optional Element Summary
Optional Elements
-
Element Details
-
format
String format日期格式- Returns:
- the string
- Default:
"yyyy-MM-dd HH:mm:ss"
-
errcode
String errcode默认使用的异常码- Returns:
- the string
- Default:
"-1"
-
errmsg
String errmsg默认使用的异常信息- Returns:
- the string
- Default:
"${field}\u683c\u5f0f\u4e0d\u6b63\u786e"
-
group
String[] group校验器组- Returns:
- the array
- Default:
{}
-
field
String field被校验字段名称- Returns:
- the string
- Default:
"field"
-