简体   繁体   English

intellij - spring-boot未被识别(未映射的Spring-boot注释配置类)

[英]intellij - spring-boot is not being recognised (unmapped Spring-boot annotated configuration classes)

I am using intellij and all plugins for spring are activated , How to add spring-boot annotated configuration classes to intellij IDE . 我正在使用intellij并且所有spring的插件都被激活,如何将spring-boot注释配置类添加到intellij IDE。 I am getting following Warning : 我正在关注警告:

Spring Configuration Check Unmapped Spring configuration files found. Spring配置检查找到未映射的Spring配置文件。 Please configure/setup Spring facet for modules: exampleApp (13 files) 请为模块配置/设置Spring facet:exampleApp(13个文件)

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. 它不是特定于spring-boot,它只是IntelliJ告诉你,你的Spring配置类或XML资源没有被你的项目设置引用。 Simply add the Spring facet to your module, then click the add button in the right panel. 只需将Spring facet添加到模块中,然后单击右侧面板中的“添加”按钮。 IntelliJ should find your configuration classes or XML resources and you simply need to select them. IntelliJ应该找到您的配置类或XML资源,您只需选择它们。

All this does is allow IntelliJ to perform inspections on Spring beans you reference in your classes. 所有这一切都允许IntelliJ对您在类中引用的Spring bean执行检查。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM