I am using Spring 4. My form contains the following variables:
@NotNull
@Email
private String email;
@NotNull
private String firstName;
@NotNull
private Stri
i also faced the same issue where my entire code was properly written.
The problem was the different version of jar files that i was using .
I had hibernate-validator-cdi- 5.0.7.Final and hibernate-validator-6.0.2.Final.
Just make sure your jar files are of the same version.
When i kept all the jars of same version, my issue got resolved. I hope this will help you .