idea 关于applicationContext.xml cannot be opened because it does not exist

idea 启动tomact项目时,报错applicationContext.xml cannot be opened because it does not exist

 

根据报错信息找到配置行,发现

<param-value>/***********/applicationContext.xml</param-value>

applicationContext.xml  也是红色的,点击ctrl+加鼠标左键也无法跳转到相应的配置文件中。

 

一般这种。就是这个工程不发找不到你的resource下的applicationContext.xml。

解决办法:

file -》 Project Structure -》Modules  找到你的项目工程。如下图操作就行了

idea 关于applicationContext.xml cannot be opened because it does not exist