问题描述:maven项目,在tomcat服务器上面运行,启动服务器报错.

Maven:项目 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

根据错误提示.:jar包没有导入?

org\springframework\spring-web\4.1.2.RELEASE\spring-web-4.1.2.RELEASE.jar

查看项目结构:

Maven:项目 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

发现已经编译:

Maven:项目 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

尝试了很多方法以后:

后来发现没有交给tamcat管理,做以下修改就可以了.

 Maven:项目 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener


再次启动服务器:ok.

Maven:项目 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener


粗心犯的错!!!!!






相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-07-26
  • 2021-09-09
  • 2022-12-23
猜你喜欢
  • 2022-01-18
  • 2021-04-21
  • 2022-12-23
  • 2021-11-16
  • 2021-12-19
相关资源
相似解决方案