tomcat啓動maven項目報錯:java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener
原因在於發佈項目的時候沒有將maven中依賴的jar也發佈進去,因此找不到相關的類。
解決方法:右擊項目---->properties------>Web Deployment Assembly----->Add
------->Java Build Path Entries
----->Maven Dependencies
------------>ok!