Spring MVC Custom Validator

This commit is contained in:
root
2017-03-17 13:57:34 -04:00
parent f2f8839708
commit e7e6326a00
8 changed files with 207 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
package com.baeldung.model;
import com.baeldung.customvalidator.ContactNumberConstraint;
public class ValidatedPhone {
@ContactNumberConstraint
private String phone;
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
}