Validation error: “No validator could be found for type: java.lang.Integer”

前端 未结 5 477
故里飘歌
故里飘歌 2021-02-04 23:06

I am working on a project with Spring why do I keep getting the following error?

javax.validation.UnexpectedTypeException:
No validator could be fou

5条回答
  •  春和景丽
    2021-02-04 23:26

    You can add hibernate validator dependency, to provide a Validator

    
        org.hibernate
        hibernate-validator
        6.0.12.Final
    
    

提交回复
热议问题