Spring diagrams
Required plugins: Spring and Diagrams (bundled)
Spring diagrams help you analyze dependencies in your application. You can double-click a bean or a file on a diagram to open it in a dedicated tab in the editor.
tip
For Spring Boot, you can also build the Runtime Beans diagram.
Use the Spring Beans Dependencies diagram to view and analyze dependencies between beans in your project.
In the gutter, click the bean icon (for Java or Kotlin files) or the diagram icon (for XML files).
Select Beans Dependencies Diagram.
Alternatively, right-click a file and, from the context menu, select Diagrams | Show Diagram | Spring Beans Dependencies CtrlAltShift0U.
This opens the diagram in a separate editor tab. To open it in a popup window, right-click a file and select Diagrams | Show Diagram Popup CtrlAlt0U.
You can also access the bean dependencies diagram by clicking the diagram icon in the Spring tool window.
To view only direct dependencies between beans on the diagram, click (Show Neighbours of Selected Nodes) in the diagram toolbar.
To show library beans on the diagram, click (Show beans from libraries) in the diagram toolbar.
Use the Spring Context Dependencies diagram to view dependencies between multiple configuration files and analyze how they include and reference each other. Red arrows on the diagram mark errors (such as circular dependencies) to easily spot and remove them from your Spring configuration.
Right-click the configuration file for which you want to build a diagram.
From the context menu, select Diagrams | Show Diagram CtrlAltShift0U.
This opens the diagram in a separate editor tab. To open it in a popup window, select Diagrams | Show Diagram Popup CtrlAlt0U.
In the Select Diagram Type popup menu, click Spring Context Dependencies.
The Spring context dependencies diagram uses the following arrows:
A solid blue line stands for | |
A solid yellow line stands for | |
A dashed green line stands for | |
Dotted gray lines stand for other dependencies. | |
| Red lines stand for errors. |
Thanks for your feedback!