最近在idea导入项目的时候,加载xml文件失败,后台报了如下异常,xml文件没找到。
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [ApplicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [ApplicationContext.xml] cannot be opened because it does not exist
首先查看文件是否正常编译
发现配置文件没有编译进去
解决:
打开
即可正常编译。