SpringMVC Maven ContextLoaderListener錯誤配置解決

SpringMVC + maven架構環境時: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener解決方案java

 

一、環境web

SpringMVC + Maven + mybatisspring

二、報錯提示tomcat

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

...略架構

三、分析緣由併發

用於項目用eclipse控制檯的server->tomcat發佈後,報上述錯誤,併發如今D:\tools\tomcat7.0.55\webapps\項目名\WEB-INF沒有lib包,考慮是SpringMVC 的jar包未導入產生的。app

四、處理辦法eclipse

eclipse中右鍵項目->properties->Deployment Assembly,添加maven依賴包便可webapp

如圖:

相關文章
相關標籤/搜索