Java / Spring MVC 3 validation of an email address
- by Tim
I have a Java backend with Spring MVC and I am using validation in this way on my domain object for an email address:
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
...
@NotNull
@Size(min = 1, max = 100)…