Spring Boot奇怪的問題:The Bean Validation API is on the classpath but no implementation could be found


注意:此方法不能解決在項目上用了Hibernate Validator的問題。

錯誤如下:

***************************
APPLICATION FAILED TO START
***************************

Description:

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

Action:

Add an implementation, such as Hibernate Validator, to the classpath

場景:

新搭建的Spring Boot項目,就最簡單的Hello World實例,沒有用什么Hibernate Validator,而且在其它系統都能正常,但就其中一台LInux無法運行。

解決方法:

直接刪除整個.m2文件夾,重新下載所有的包即可。懷疑是其中的某些包下載回來有問題,可能是權限問題等。

 

參考:

https://stackoverflow.com/questions/41879541/spring-boot-sample-unable-to-start-embedded-container-error


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM