是否存在生成Spring应用程序上下文依赖关系图/图形的工具? [英] Is there a tool to generate Spring application context dependency diagram/graph?

查看:109
本文介绍了是否存在生成Spring应用程序上下文依赖关系图/图形的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有工具来生成Spring应用程序上下文的图/图?

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

该工具还应考虑注释驱动的配置(例如@Autowired).

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

该工具可以通过在运行时转储" BeanDefinition来生成依赖关系图. IE.我不需要该工具进行静态代码分析.

The tool may generate the dependency diagram by 'dumping' BeanDefinitions in runtime. I.e. I don't require the tool to make static code analysis.

推荐答案

Spring IDE + Eclipse或Spring Source Tool Suite可以生成依赖关系的简单图形.

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

为此,请打开名为"Spring Explorer"的视图,然后选择您的项目.然后单击鼠标右键->属性,并将部分/全部上下文文件组合到配置集"中.保存后,可以在Spring Explorer中右键单击它,然后选择打开依赖关系图".

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.

这篇关于是否存在生成Spring应用程序上下文依赖关系图/图形的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆