错误信息:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

来源:互联网 发布:小企业的会计软件 编辑:程序博客网 时间:2024/06/07 04:01

eclipse导入一个maven项目,启动Tomcat报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

①先检查spring-web.jar,看是否缺少该库文件,是否重复导致冲突;

②检查是否添加maven依赖,右键项目→PropertiesDeployment AssemblyAdd...Java Build Path EntriesNextMaven DependenciesFinish;

③可能是tomcat缓存的问题,进入tomcat的webapps目录,清空该目录下所有文件,再重新加载工程,启动tomcat;




阅读全文
0 0