java.lang.NoClassDefFoundError: javax/validation/ParameterNameProvider

后端 未结 2 636
花落未央
花落未央 2020-12-06 03:42

I write small hibernate application and get following stacktrace:

org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation int         


        
相关标签:
2条回答
  • 2020-12-06 04:27

    Just remove the javax.validation dependency

    <dependency>
        <groupId>javax.validation</groupId>
        <artifactId>validation-api</artifactId>
        <version>1.0.0.GA</version>
    </dependency>
    

    That fixed this particular problem on my end.

    0 讨论(0)
  • 2020-12-06 04:31

    Hibernate Validator 5x is not compatible with validation-api 1.0.x

    JPA 2.0 : Exception to use javax.validation.* package in JPA 2.0

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