您的位置:首页 > 编程语言 > Java开发

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

2017-01-03 14:18 579 查看
导入同事工程,报错:

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

最终按如下操作解决:

I had a similar problem when running a spring web application in an Eclipse managed tomcat. I solved this problem by adding maven dependencies in the project’s web deployment assembly.

Open the project’s properties (e.g., right-click on the project’s name in the project explorer and select “Properties”).

Select “Deployment Assembly”.

Click the “Add…” button on the right margin.

Select “Java Build Path Entries” from the menu of Directive Type and click “Next”.

Select “Maven Dependencies” from the Java Build Path Entries menu and click “Finish”.

You should see “Maven Dependencies” added to the Web Deployment Assembly definition.

原文地址:http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl/30054250
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  spring 加载错误
相关文章推荐