【问题标题】:Intellij spring boot integrationIntellij Spring Boot 集成
【发布时间】:2014-06-12 22:10:25
【问题描述】:

由于某种原因,Intellij 13.1.3 没有检测到 Spring Boot bean。 Spring Boot 版本为 1.1.1-Release。当我尝试在某些组件中注入 ObjectMapper 时,我在 IDE 中出现错误“没有定义 ObjectMapper 类型的 bean”,但是应用程序编译并运行得很好,并且 ObjectMapper bean 在 /beans json 中可见。

我已将我的 application-context 和 Application.java 文件添加到 spring facet 中,IDE 可以识别我手动定义的所有其他 beans,它只是忽略 Spring boot @EnableAutoConfiguration强>。知道如何解决这个问题,因为在 IDE 中没有正确的链接并到处出现错误有点乏味。我认为这是一个常见问题?

谢谢!

【问题讨论】:

    标签: spring spring-mvc intellij-idea spring-boot


    【解决方案1】:

    作为此答案的更新:IntelliJ 现在支持 Spring Boot。必须至少为 R14。 R15 包含更多集成。

    【讨论】:

      【解决方案2】:

      暂不支持Spring Boot,请关注http://youtrack.jetbrains.com/issue/IDEA-119230

      【讨论】:

        猜你喜欢
        • 2018-11-28
        • 2018-09-18
        • 2012-08-24
        • 2017-05-04
        • 2018-02-21
        • 1970-01-01
        • 1970-01-01
        • 2016-10-16
        • 2015-01-16
        相关资源
        最近更新 更多