IntelliJ IDEA 2016.2 Help

Working with Spring Dependencies

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.

  • spring_graph_componentScan_dependency
    A solid line and blue color are reserved for @ComponentScan annotation dependencies.
  • spring_graph_enable_dependency
    A solid line and orange color are used for @Enable annotation dependencies.
  • spring_grapgh_import_dependency
    Dashed lines and green color are reserved for Import annotations.
  • spring_graph_error_dependency
    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.
  • spring_graph_other_dependency
    Dotted lines are used for other dependencies.

See Also

Last modified: 23 November 2016