1. 程式人生 > >maven項目 啟動報錯:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

maven項目 啟動報錯:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

mave .cn maven依賴 dep found ext trie rec sse

轉自:https://www.cnblogs.com/gugnv/p/4136819.html

tomcat在發布項目的時候沒有同時發布maven依賴所添加的jar包,所以找不到
解決方法:設置一下eclipse:
項目 —> properties -> Deployment Assembly -> Add -> Java Build Path Entries -> 選擇Maven Dependencies -> Finish -> OK
把對應的Maven依賴包也發布到tomcat,調試時會自動把那些jar發布到指定目錄下,tomcat也能找到那些jar了。

maven項目 啟動報錯:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener