简体   繁体   English

Spring Boot应用程序IntelliJ

[英]Spring boot application intellij

The autowiring and the bean detection feature are not working for my spring boot application. 自动装配和Bean检测功能不适用于我的Spring Boot应用程序。 The application is running fine it's just that intellij does not detect correctly the beans. 该应用程序运行良好,只是intellij无法正确检测到bean。 I have added the Spring facet, hibernate facet, jpa facet to the module. 我已经将Spring facet,hibernate facet,jpa facet添加到了模块中。

Here is my main class: 这是我的主要课程:

@SpringBootApplication
@EnableWebMvcSecurity
@ImportResource("classpath:spring/applicationContext.xml")
public class MyApplication{

    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class, args);
    }

This is a known bug in IntelliJ. 这是IntelliJ中的一个已知错误。 However proper Spring Boot support is planned for the 14.1 release (last time I checked this release should be ready in a few months). 但是计划为14.1版本提供适当的Spring Boot支持(我上次检查该版本应该在几个月后准备好)。 Check out IDEA-119230 for more details. 请查看IDEA-119230了解更多详细信息。

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

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