ClassNotFoundException:ContextLoaderListener
的有关信息介绍如下:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener,项目部署了,但是跑不起来。
在eclipse中运行web项目的时候出现如下异常:
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
在tomcat项目部署路径下面没有发现lib文件夹
右击项目properties
接下来选中Deployment Assembly
点击Add,然后选中Java Build Path Entries
点击next,选择Maven Dependencies
点击完成,这样就可以解决上述错误。
删除掉tomcat配置,重新配置tomcat