springmvc项目,启动报错Context initialization failed

吃可爱长大的小学妹 提交于 2020-02-28 03:37:05

错误描述如下:

  1. springmvc项目 tomcat启动报错:
Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring-conf/applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring-conf/applicationContext.xml] cannot be opened because it does not exist
  1. xml 文件 提示没有配置上下文,classpath报红,resource 文件夹图标显示不正确
    在这里插入图片描述

解决方法:(工具IDEA)

File => Project Structure => Modules 添加 如图:

在这里插入图片描述
在这里插入图片描述
正常启动

ps: 个人项目解决办法

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!