Suppose we have a POJO class User we need to validate.
public class User {
@NotEmpty
@Size(min=5)
@Email
private String email;
}
and a controller method to validate the user instance
public String registerUser(@Valid User user, BindingResult result);
Let's extend the U...