Spring MVC form validation not working

前端 未结 6 1991
日久生厌
日久生厌 2021-01-06 00:27

I am using Spring 4. My form contains the following variables:

@NotNull
@Email
private String email;
@NotNull
private String firstName;
@NotNull
private Stri         


        
6条回答
  •  不知归路
    2021-01-06 01:09

    You need to add

    
    

    and

    
    

    and

        
        
            org.hibernate
            hibernate-validator
            4.2.0.Final
        
    

    Should work!

提交回复
热议问题