Annotation Interface Mobile
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy={})
@Pattern(regexp="^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$",
message="\u624b\u673a\u53f7\u7801\u683c\u5f0f\u9519\u8bef")
public @interface Mobile
- Author:
- Kerbores(kerbores@riemann.tech)
-
Optional Element Summary
Optional Elements
-
Element Details
-
required
boolean required- Default:
true
-
regexp
- Default:
"^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$"
-
message
- Default:
"\u624b\u673a\u53f7\u7801\u683c\u5f0f\u9519\u8bef"
-
groups
- Default:
{}
-
payload
@AliasFor(annotation=jakarta.validation.constraints.Pattern.class) Class<? extends jakarta.validation.Payload>[] payload- Default:
{}
-