嚴重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
.......
tomcat再發布web項目時,並沒有將maven的依賴包一起隨項目的編譯一並進行打包。
解決辦法
- 打開eclipse項目屬性 (點擊項目名,鼠標右鍵選"Properties").
- 選擇 "Deployment Assembly".
- 點擊"Add..."項
- 從菜單中選擇 "Java Build Path Entries", 然后"Next".
- 從Java Build Path Entries菜單中選擇"Maven Dependencies",然后"Finish".
此時可以看到"Maven Dependencies"已經被加入到Web Deployment Assembly定義中.