Is there a tool to generate Spring application context dependency diagram/graph?

后端 未结 3 549
故里飘歌
故里飘歌 2021-02-02 08:48

Is there a tool to generate diagram/graph of Spring application context?

The tool should take into consideration also annotation driven configuration (like @Autowired).

3条回答
  •  天命终不由人
    2021-02-02 09:11

    The Spring IDE + Eclipse or the Spring Source Tool Suite can generate simple graphs of your dependencies.

    To do that open the view called "Spring Explorer" and choose your project. Then click right mouse -> Properties and combine some/all of your context files into a "Config Set". After saving you can right click on it in the Spring Explorer and choose "Open dependency graph".

    The graph is static and quite untidy, but this might help.

提交回复
热议问题