【坑】找不到配置文件class path resource [applicationContext.xml] cannot be opened because it does not exist

导了一次以前写的项目

结果死活爆红,找不到applicationContext.xml文件,纳闷

总结方法:
①确保web.xml配置
在这里插入图片描述
②将放配置文件的文件夹设为resource
在这里插入图片描述
③巨坑,就是我报错的原因
选上面那个Inherit project…那个选项,别选错了
在这里插入图片描述
完!!!

猜你喜欢

转载自blog.csdn.net/qq_56180303/article/details/129219063