maven项目出现:Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

 

今天安装和部署maven项目的时候一直都出现这样的错误:

 maven项目出现:Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 

按照网上的好多都是说spring.jar包什么的问题,但是我这个项目修改了也没有效果的样子,后来自己尝试了一下,发现是maven的包没成功导入项目中:

在eclipse中:如果在这样:右击 Maven project --> Macven --> Enable Dependency Management 不行的,就如下:

 

然后选择添加maven dependences相关包。然后右击项目-->maven-->update project 

最后从新部署。

 

MyEclipse中要注意jdk的版本一致:

 

posted @ 2016-07-10 02:15  Calvin.Law  阅读(7813)  评论(0编辑  收藏  举报