Spring facet configuration is not autodetected


In one of my Spring Boot projects, the Spring facet is not auto detected. Certain Idea Spring features only work when the Spring facet is auto configured.

The project is a Spring Boot Gradle project.

I'm using 2017.3 EAP (build 173.2463.16)


What are the requirements/restrains for Idea to autodetect the Spring facet?

Official comment

Spring facet should be added automatically if Spring library is detected in project. Please try full reimport, if it still doesn't work please ZIP project and create issue https://youtrack.jetbrains.com/issues/IDEA



Hi Yann,

I use IntelliJ 2017.2.5 ultimate version and working on Microservice based project and all of these projects have the same pom file (same on structure). I don't know for what reason IntelliJ doesn't detect Spring facet for 2 of them. I use yaml format as well.


Please create an issue in our tracker (see above) and attach sample project and/or describe setup in more details. Thanks



In my case, duplicate annotations (@SpringBootApplication in combination with @EnableAutoConfiguration and @ComponentScan) prevented Intellij from autoconfiguring the Spring Facet.


@LA there is no general "solution", please post your sample setup here or create an issue in our tracker so I can take a look. Thanks


@Yann Cebron Thank you for an answer. I figured that there is no general "solution", so I removed my comment :)


Please sign in to leave a comment.