maven项目SSM整合时,报application.xml资源找不到或者不存在时去看一下源文件是否有这个src/main/resources目录
FileNotFoundException: class applicationContext.xml cannot be opened because it does not existFileNotFoundException: class applicationContext.xml cannot be opened because it does not exist

解决方案:

右键当前项目,找到属性(properties)后如下图
FileNotFoundException: class applicationContext.xml cannot be opened because it does not exist
点击添加后
FileNotFoundException: class applicationContext.xml cannot be opened because it does not exist

最后清理并重新运行项目就好了

相关文章: