1. 程式人生 > >關於maven專案下啟動tomcat報錯

關於maven專案下啟動tomcat報錯

eclipse啟動tomcat報錯: 

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

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener,如圖:

解決辦法如下:

右鍵專案-》Properties-》如圖:

最後重新clean專案,重啟tomcat即可。
原文:https://blog.csdn.net/chengtianqing123/article/details/50318027