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
这几天刚学spring遇到了好几次这个问题,发现网上还没有新的解决方法;
这是出错时的语句:
此时我的目录Resourses为:
可以看到我的applicationContext是在resourse的子包下的;
我试着包配置文件的类路径写上如:
再编译一下就可以了。