Please configure Spring facet or use 'Create Default Context' to add one including all unmapped files.
有时候我们刚进入 Intellij IDEA时会出现这样一个情况,原因是IDEA没有找到spring的配置文件,我们需要添加spring文件给idea管理
参考:
1、https://www.jetbrains.com/help/idea/2018.1/spring-support.html?utm_medium=link&utm_source=product&utm_campaign=IU&utm_content=2018.1#spring-file-set
2、http://chendaiming.iteye.com/blog/2249269
3、https://blog.csdn.net/flyingnet/article/details/78009254