IntelliJ IDEA 2017.1 Help

Working with Spring Dependencies

This feature is supported in the Ultimate edition only.

IntelliJ IDEA lets you analyze your Spring project dependencies.

Opening Spring dependency graph

  1. In the Project View window right-click on the Spring configuration file for which you wish to create a diagram and select Diagrams | Show Diagram | Select Diagram Type.
  2. In the Select Diagram Type dialog select the diagram you want to create.
  3. Depending on the type of the diagram you have selected, IntelliJ IDEA opens the graph in the editor where you can analyze the relationship between the dependencies.
    You can use the diagram toolbar and the context menu to check additional options and adjust your graph. You can also use the diagram settings to change the toolbar options.

Reading Spring Model Dependency Diagram

IntelliJ IDEA lets you view the relationships between Spring configuration files dependencies. IntelliJ IDEA uses different types of lines and colors to show how those relationships were created.

  • /help/img/idea/2017.1/spring_graph_componentScan_dependency.png
    A solid line and blue color are reserved for @ComponentScan annotation dependencies.
  • /help/img/idea/2017.1/spring_graph_enable_dependency.png
    A solid line and orange color are used for @Enable annotation dependencies.
  • /help/img/idea/2017.1/spring_grapgh_import_dependency.png
    Dashed lines and green color are reserved for Import annotations.
  • /help/img/idea/2017.1/spring_graph_error_dependency.png
    Lines with red color are used for errors.
    If some configuration file is included several times then all its inclusions except one are considered errors.
  • /help/img/idea/2017.1/spring_graph_other_dependency.png
    Dotted lines are used for other dependencies.

See Also

Last modified: 18 July 2017