Hibernate Validator java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.ConfigurationImpl

前端 未结 7 456
南方客
南方客 2021-01-19 02:15

I have read this and this, but that didn\'t help...

I am using hibernate validator with the following versions/dependencies:


             


        
相关标签:
7条回答
  • 2021-01-19 02:41

    Add this in spring-servelt.xml

     <beans:bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"> </beans:bean> 
    

    and following jars

    1. hibernate-validator-6.0.17.Final.jar
    2. validation-api-2.0.1.Final.jar
    3. classmate-1.3.4.jar
    4. jboss-logging-3.3.2.Final.jar

    then all will work fine.

    Happy to help...

    0 讨论(0)
提交回复
热议问题