Abbadon
Abbadon

Reputation: 2703

Spring boot application intellij

The autowiring and the bean detection feature are not working for my spring boot application. The application is running fine it's just that intellij does not detect correctly the beans. I have added the Spring facet, hibernate facet, jpa facet to the module.

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);
    }

Upvotes: 1

Views: 738

Answers (1)

Bohuslav Burghardt
Bohuslav Burghardt

Reputation: 34846

This is a known bug in 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). Check out IDEA-119230 for more details.

Upvotes: 1

Related Questions