IntelliJ IDEA 2017 提示“Unmapped Spring configuration files found.Please configure Spring facet.”解决办法

当把自己的一个项目导入IDEA之后,Event Log提示“Unmapped Spring configuration files found.Please configure Spring facet.” 

 

 

这个提示不影响工程正常运行,但是,作为一个强迫症~~每天看到这个提示内心是躁动和不安的。于是研究了一下,原因是web工程中的spring配置文件没有被IDEA所管理,解决这个问题也很简单,只需要2步操作即可:

1.“Ctrl+Shift+Alt+S”打开project的配置界面,选择“Modules”页签,再选择报“Unmapped Spring configuration files found.”的Module,点击“+”按钮;

 

 

2.在弹出的窗口内,全部勾选Unmapped的Spring配置文件,点击“确定”,然后在父界面中点击“应用”或“确定”完成保存。

 

 

最后,重启IDEA后,发现"Event Log"不再提示“Unmapped Spring configuration files found.Please configure Spring facet.” ,结束。

posted @ 2019-03-27 09:36  jeremy1888  阅读(3036)  评论(0编辑  收藏  举报