java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener


场景:IDEA,maven,多模块,SSM
在更改pom文件中的jar包时,出现报错,如图
IDEA java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
解决办法:打开Project Structure—Artifacts—Output Layout
IDEA java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
把图中的显示红色的包都Remove掉
IDEA java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
在右键项目,点击Put into Output Root
IDEA java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
然后在点击Apply—OK,就可以啦。
此解决方案,仅供参考哈。我是这样就可以了。

相关文章:

  • 2021-05-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-07-29
相关资源
相似解决方案