原因是项目中的Spring配置文件没有被IDEA所管理

解决方法:

后面有图片教程

打开IDEA然后左上角的File–>Project Structure–>Project Settings–>Modules–>找到自己的那个项目然后找到自己项目的Spring–>然后右边左上角的+号–>勾中自己的项目就OK了!

IDEA打开Spring文件时提示Unmapped Spring configuration files found. Please configure Spring facet or use 'C
IDEA打开Spring文件时提示Unmapped Spring configuration files found. Please configure Spring facet or use 'C
IDEA打开Spring文件时提示Unmapped Spring configuration files found. Please configure Spring facet or use 'C
IDEA打开Spring文件时提示Unmapped Spring configuration files found. Please configure Spring facet or use 'C
IDEA打开Spring文件时提示Unmapped Spring configuration files found. Please configure Spring facet or use 'C

相关文章: