第一个springboot遇到的问题 The Bean Validation API is on the classpath but no implementation could be found

 

The Bean Validation API is on the classpath but no implementation could be found

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

增加bean的验证依赖

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

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

 

 

 

 

转:

第一个springboot遇到的问题

posted @ 2020-07-22 15:24  戈博折刀  阅读(13477)  评论(1编辑  收藏  举报