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

eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLo

2016-06-13 21:15 549 查看
1.       Add maven dependencies  

Right click the web project “properties” -------> click the “Deployment Assembly” ---->

Click add button



2:Choose Java Build Path Entires ---> click Next



3:Choose Maven Dependencies------>  Finish



到此,可以重新启动tomcat。

本文转自:http://blog.sina.com.cn/s/blog_8ced01900101ba3f.html

个人理解是因为tomcat默认加载WEB-INF下面的包。这样设置加载时包已经到了WEB-INF下面。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: