Intellij IDEA 启动项目ClassNotFoundException

来源:互联网 发布:python做界面设计 编辑:程序博客网 时间:2024/05/18 00:38

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

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

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

原因之一jar包未被部署:

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

详情如下图:


6 0
原创粉丝点击