Spring MVC 3 Validation - Unable to find a default provider

后端 未结 3 541
甜味超标
甜味超标 2020-12-14 15:24

I get an error when trying to set up Spring MVC validation.

javax.validation.ValidationException: Unable to find a default provider

I read

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 15:39

    If you are using Maven, you must add a dependency to the Hibernate Validator Annotation Processor.

    
      org.hibernate
      hibernate-validator-annotation-processor
      4.1.0.Final
    
    

    You can find it in the JBoss repository :

    
      JBoss Repository
      https://repository.jboss.org/nexus/content/repositories/releases
      JBoss Repository
    
    

提交回复
热议问题