批注类型 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
作者:
Kerbores(kerbores@riemann.tech)
  • 元素详细资料

    • required

      boolean required
      默认值:
      true
    • regexp

      @AliasFor(annotation=javax.validation.constraints.Pattern.class) String regexp
      默认值:
      "^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$"
    • message

      @AliasFor(annotation=javax.validation.constraints.Pattern.class) String message
      默认值:
      "\u624b\u673a\u53f7\u7801\u683c\u5f0f\u9519\u8bef"
    • groups

      @AliasFor(annotation=javax.validation.constraints.Pattern.class) Class<?>[] groups
      默认值:
      {}
    • payload

      @AliasFor(annotation=javax.validation.constraints.Pattern.class) Class<? extends javax.validation.Payload>[] payload
      默认值:
      {}