Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider

来源:互联网 发布:淘宝鼠标滑动效果代码 编辑:程序博客网 时间:2024/04/27 14:05



增加bean的验证依赖

Hibernate Validator ,缺少了可用的验证依赖的实现类,增加下面这个依赖





<dependency>    <groupId>org.hibernate</groupId>    <artifactId>hibernate-validator</artifactId>    <version>5.2.4.Final</version></dependency>

3down vote

Add a Bean Validation Provider dependency e.g Hibernate Validator. The Bean Validation API dependency is available on the classpath but the implementation is missing. Add the following to your pom.xml

1 0