Java intellij - 无法识别 spring-boot(未映射的 Spring-boot 注释配置类)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24689856/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
intellij - spring-boot is not being recognised (unmapped Spring-boot annotated configuration classes)
提问by user3796703
I am using intellij and all plugins for spring are activated , How to add spring-boot annotated configuration classes to intellij IDE . I am getting following Warning :
我正在使用 intellij 并且所有 spring 插件都已激活,如何将带 spring-boot 注释的配置类添加到 intellij IDE。我收到以下警告:
Spring Configuration Check Unmapped Spring configuration files found. Please configure/setup Spring facet for modules: exampleApp (13 files)
Spring 配置检查未映射的 Spring 配置文件已找到。请为模块配置/设置 Spring facet:exampleApp(13 个文件)
回答by Patrick Grimard
It's not specific to spring-boot, it's merely IntelliJ telling you that your Spring configuration classes or XML resources are not being referenced by your project settings. Simply add the Spring facet to your module, then click the add button in the right panel. IntelliJ should find your configuration classes or XML resources and you simply need to select them.
它不是特定于 spring-boot,它只是 IntelliJ 告诉你你的 Spring 配置类或 XML 资源没有被你的项目设置引用。只需将 Spring facet 添加到您的模块,然后单击右侧面板中的添加按钮。IntelliJ 应该找到您的配置类或 XML 资源,您只需选择它们。
All this does is allow IntelliJ to perform inspections on Spring beans you reference in your classes.
所有这些都是允许 IntelliJ 对您在类中引用的 Spring bean 执行检查。