报错:IOException parsing XML document from class path resource [applicationContext.xml]; nested except

1.出现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
在这里插入图片描述
上面这张图是我的目录,它一直说找不到applicationContext.xml文件,我就纳闷了,他一直在啊,路径没毛病啊,结果我百度了好久发现在classes在复制一个进去就可以。如图
2.解决方案
将applicationContext.xml文件放入到target—>classes包下即可
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_44421796/article/details/108996078
今日推荐