Spring MVC with hibernate validation doesn't work

前端 未结 3 1082
遥遥无期
遥遥无期 2021-01-22 01:29

I have some problems with hibernate validations with Spring. I did everything as explained in an online tutorial, but it\'s not working and I just go to the next page without va

3条回答
  •  星月不相逢
    2021-01-22 02:11

    Add hibernate-validator in your classpath if it does not exist already. If you are using any build tool like gradle or maven just add hibernate-validator to dependencies.

    For example:

    Gradle:

    compile group: 'org.hibernate.validator', name: 'hibernate-validator', version: '6.0.13.Final'
    

    Maven:

    
        org.hibernate.validator
        hibernate-validator
        6.0.13.Final
    
    

提交回复
热议问题