idea调试SpringMvc, 出现:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误的解决办法

转载:https://www.cnblogs.com/feiyujun/p/6537510.html

地址:http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl

实际在Idea中这样配置:

File > Project Structure > Artifacts > 在右侧Output Layout右击项目名,选择Put into Output Root,见下面截图:

执行后,在WEB-INF在增加了lib目录,里面是项目引用的jar包,点击OK。

重新启动Tomcat,这次成功发布。

posted on 2017-12-27 17:23  凤鸣岐山  阅读(206)  评论(0编辑  收藏  举报

导航