intellij - spring未被识别(未映射的Spring配置) [英] intellij - spring is not being recognized (Unmapped Spring configuration)

查看:7804
本文介绍了intellij - spring未被识别(未映射的Spring配置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IntelliJ IDEA并且Spring的所有插件都被激活,
但是当我加载我的Maven项目时出现以下错误:

I am using IntelliJ IDEA and all plugins for Spring are activated, but when I load my Maven project I have the following error:


Spring配置检查

找到未映射的Spring配置文件。

请为模块配置/设置Spring facet

Spring Configuration Check
Unmapped Spring configuration files found.
Please configure/setup Spring facet for modules

有什么想法阻止它自动配置?

Any ideas what prevented it from being configured automatically?

推荐答案

只是为了澄清上面的答案,您需要执行以下操作:

Just to clarify the answers above, you need to do the following:


  1. 转到项目结构对话框(通过单击警告或通过file =>项目结构

  2. 选择左侧列表中的模块项目

  3. 通过并右键单击缺少文件的模块,然后在新标签中选择添加=>春天

  4. 点击+按钮

  5. 您现在应该看到一个xml文件列表把他们旁边的盒子砸了

  1. Go to the project structure dialog (either by clicking the warning or through file=>project structure
  2. select the modules item in the left hand list
  3. go through and right click on the modules with missing files and select Add=>Spring
  4. in the new tab click the + button
  5. you should now see a list of the xml files. Check the boxes next to them

除了摆脱警告之外,我还不完全清楚它的成就!如果有人能说明它会很好。

I'm not entirely clear what this achieves apart from getting rid of the warnings! If anyone could shed any light on that it'd be good.

这篇关于intellij - spring未被识别(未映射的Spring配置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆