第一个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遇到的问题


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM