Application context not configured this file

问题描述:
在idea新建的项目中,在resource目录下创建spring框架的核心配置文件applicationContext.xml后,idea提示"Application context not configured this file",我理解的意思大概为,该配置文件还没有配置到项目中,需要自己手动配置一下。


解决办法
1.打开项目的Project Structure
Application context not configured this file
在idea的左上角file-->Project Structure
2.打开Project Structure后选择facets,若打开后直接有对应的框架则跳到步骤6
Application context not configured this file
3.若打开后没有对应的框架,则需收到添加框架,点击"+"选择对应的框架
Application context not configured this file
4.选择框架后,在弹出的窗口中选择对应的模块,若没有所需的模块,还要自己手动添加模块,就在facets同级目录
Application context not configured this file
5.经过步骤4之后,会跳转到module那里,选择apply-->ok
Application context not configured this file
6.再重新打开Project Structure后就可以看到facets中已经添加好对应的框架了
Application context not configured this file
7.此时再将对应的配置文件绑定到该框架中,选中刚添加的框架后,点击右边窗口的"+",
Application context not configured this file
8.在弹出的窗口中,选中配置文件,然后依次点击ok-->apply-->ok,就可以了
Application context not configured this file
9.此时idea已不再提示
Application context not configured this file

Application context not configured this file

上一篇:Vue—11—网络通信axios;


下一篇:2021程序员进阶宝典!最新高频安卓面试题目分享,一线互联网公司面经总结