IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Add Spring support to existing project

Last modified: 29 November 2022

To enable Spring support in your project, you need the Spring facet that comprises libraries and UI elements for configuring settings specific to Spring. IntelliJ IDEA automatically detects Spring configuration files in your code. The IDE will inform you if the project requires any adjustments and suggest the necessary actions. So normally, a Spring project does not require manual configuration.

However, if IntelliJ IDEA does not detect configuration files automatically, you can add the facet manually:

If the Spring facet is configured correctly, you will see Spring gutter icons marking each component, bean, and so on. To configure gutter icons, open the IDE settings with Ctrl+Alt+S and go to Editor | General | Gutter Icons.