現在のプロジェクトでは、モデルBeanの3つのフィールドに電話番号がありますが、春の検証エラーが1つだけ必要です。これはできますか>
@NotEmpty(message = "Your Question must not be blank.")
@Size(min = 10, max = 200)
private String content;
@NotEmpty(message = "Area Code must not be blank.")
@Size(min = 3, max = 3, message = "Area must be 3 numbers")
private String areacode;
@NotEmpty(message = "Phone Number must not be blank.")
@Size(min = 3, max = 3, message = "phone number first part must be 3 numbers")
private String phone3;
@NotEmpty(message = "Phone Number must not be blank.")
@Size(min = 4, max = 4, message = "Phone number last part must be 4 numbers")
private String phone4;