报告作为 @Pattern 形参的实参传递并从与指定模式不匹配的 @Pattern 注解方法返回的表达式。

示例:


  @Pattern("\\d\\d-\\d\\d\\d") String getId() {
    return "1";
  }