引用至Intellij IDEA 启动项目ClassNotFoundException

使用Intellij IDEA的过程中,新创建的项目启动时报

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

项目中pom.xml文件中是依赖了相关Spring jar包的。

原因之一jar包未被部署:

Ctrl+Alt+Shift+s打开项目设置窗口,选择Artifacts,选择打包部署项目,选择Output Layout-->Web-INF,查看下面是否有lib目录,右边的jar包是否添加到lib目录下。

相关文章:

  • 2021-04-07
  • 2022-12-23
  • 2021-04-21
  • 2021-07-02
  • 2021-09-01
  • 2021-10-28
  • 2021-12-03
  • 2021-04-24
猜你喜欢
  • 2021-09-20
  • 2021-08-28
  • 2021-11-18
  • 2021-06-24
  • 2021-05-15
相关资源
相似解决方案