错误描述如下:
- 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
- xml 文件 提示没有配置上下文,classpath报红,resource 文件夹图标显示不正确
解决方法:(工具IDEA)
File => Project Structure => Modules 添加 如图:
正常启动
ps: 个人项目解决办法