maven 依賴的包沒有引進去引起的jar包沒找到錯誤


這段時間開發一個小型oa系統遇到的一個maven 依賴的jar沒有導進去而引起的配置文件讀取不到jar包的錯誤。浪費了些時間,終於發現問題,mark下以便以后解決類似問題。

eclispe中的maven項目使用spring報java.lang.ClassNotFoundException: org.springframework.web.c

   

1.       Add maven dependencies  

Right click the web project “properties” -------> click the “Deployment Assembly” ---->

Click add button

eclispe中的maven項目使用spring報java.lang.ClassNotFoundException: <wbr>org.springframework.web.c

 

Choose Java Build Path Entires ---> click Next

eclispe中的maven項目使用spring報java.lang.ClassNotFoundException: <wbr>org.springframework.web.c

 

Choose Maven Dependencies------>  Finish

 eclispe中的maven項目使用spring報java.lang.ClassNotFoundException: <wbr>org.springframework.web.c

2.       Add project dependencies

  Click add button

eclispe中的maven項目使用spring報java.lang.ClassNotFoundException: <wbr>org.springframework.web.c



免責聲明!

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



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