Annotation Interface Match


@Retention(RUNTIME) @Target({FIELD,PARAMETER}) @Constraint(checkWith=MatchCheck.class) public @interface Match
This field must match the regexp. Message key: validation.match $1: field name $2: reference pattern
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • message

      String message
      Default:
      "validation.match"