Some features described here are available in Ultimate edition only.
To support the Spring framework
, IntelliJ IDEA provides
a set of plugins (the Spring Support plugin and others) and
a dedicated facet (the Spring facet).
The Spring facet is often used in combination with Hibernate.
Spring support
The Spring support in IntelliJ IDEA includes:
- Complete coding assistance, including smart completion in configuration files.
- Spring-aware refactorings.
- Highlighting, inspections and quick-fixes.
- Visual Spring diagrams for viewing dependencies.
- A dedicated Spring file set editor.
- Built-in File Templates for Spring context files.
- Live Templates for beans and patterns.
- Spring aspect-oriented programming (AOP) support, with full coding assistance:
- Smart code completion and highlighting.
- AspectJ-aware code completion with syntax and error highlighting.
- Numerous AspectJ-aware quick-fixes.
- Enhanced navigation with active gutter icons.
- Spring AOP inspections.
- The p-namespace support for properties definition.
- 8.0+Spring annotations support.
- Support for filters to customize scanning.
- Parsing custom Spring beans
- 8.0+Navigation for beans defined with Spring custom namespaces.
- Spring 2.5: bean() pointcut designator support.
- Find by symbol.
- Quick Javadoc (Ctrl+QControl J) on bean reference.
-
9.0+Spring Security 3.0 support including:
- Code completion.
- Formatting, syntax and error highlighting.
- Advanced usage search.
- Support for certain Spring 3.1 features including:
- 10.5+
The c-namespace support with code completion,
error highlighting, quick fixes and code generation.
-
10.5+
Bean definition profiles support.
In addition to code completion and error highlighting, the following features are available:
- For xml files containing profile definitions (<beans profile=...),
an additional status bar is provided at the top of the editor.
Shown in this bar are the names of the profiles which are currently active.
This bar also accommodates the controls for activating and deactivating the profiles.
- Definitions of active and inactive profiles are shown in the editor in different colors.
- Quick fixes (for found problems) are suggested only for the definitions that are currently active.
- You can search for profiles in the xml configuration files, @Profile annotations and Java code and,
if necessary, perform the Rename refactoring for them.
-
10.5+
Spring Roo
console which you can use right in IntelliJ IDEA, without leaving the IDE.
For the Roo console to be available, the Spring facet is not required. See Working with Spring Roo Console.
-
10.5+
Support for the Spring Integration
framework:
-
The elements available in the framework namespaces are automatically recognized as beans.
You can search for these elements and, if necessary, rename them.
-
You can use the Spring dependencies diagram to view the element dependencies and
to navigate to the referenced beans.
-
Code auto-completion is available.
-
Spring Integration-specific inspections and intention actions let you
validate and correct the model.
- 11.0+
Spring Data JPA support. Follow this link
for more detail.
When you are using Spring and Hibernate simultaneously in a project, the following integration
features are available:
- Dedicated templates to support Hibernate in Spring configuration files.
- Hibernate-aware completion in Spring configuration files.
Tip
If you do not have Spring libraries on your system, IntelliJ IDEA
can automatically download them, install and configure the appropriate project paths.