第一個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