@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) public @interface MaxLength
检查要验证的字符串长度是否小于或等于指定的最大值
Modifier and Type | Required Element and Description |
---|---|
long |
value |
Modifier and Type | Optional Element and Description |
---|---|
String |
message |
ValidateProfile |
profile |
public abstract long value
public abstract String message
public abstract ValidateProfile profile
Copyright © 2016 huihoo. All rights reserved.