tomcat導入maven項目運行拋出org.springframework.web.context.ContextLoaderListener not found

嚴重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

根本原因:jar文件沒有同步發佈到自己項目的lib目錄中

解決辦法:項目點擊右鍵 點擊 Properties 選擇Deployment Assembly

  再點擊右邊的Add按鈕 選擇Java Build Path Entries後點擊Next按鈕 然後選擇你的Maven Dependencies 確定即可




選擇裏面的Maven Dependencies 保存即可!!!

發佈了51 篇原創文章 · 獲贊 31 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章