java 如何使用spring IDE查看spring项目的类图
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5630306/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to view class diagram for a spring project using spring IDE
提问by Anupam Gupta
I am working on a project which is based on spring framework and all dependencies have been defined in the xml files as beans. I need to see diagram of classes and dependencies between them using Spring IDE . This tool can show diagram of all classes with dependencies which have been defined in the xml as beans. Can any one help me in knowing how to do that. How can i see the class diagram using spring IDE..
我正在开发一个基于 spring 框架的项目,并且所有依赖项都已在 xml 文件中定义为 bean。我需要使用 Spring IDE 查看类和它们之间的依赖关系图。这个工具可以显示所有具有依赖关系的类的图表,这些类在 xml 中定义为 bean。任何人都可以帮助我知道如何做到这一点。我如何使用spring IDE查看类图..
Thanks in Advance
提前致谢
回答by Cristi
if you are using springsource tool suite (STS) you can view that from the Spring Explorer view by selecting your project and right click on the app-config xml file and select "Open dependency graph".
如果您使用的是 springsource 工具套件 (STS),则可以通过选择您的项目并右键单击 app-config xml 文件并选择“打开依赖关系图”来从 Spring Explorer 视图中查看。
To open the Spring explorer view follow: Window->Show View -> Other -> Spring -> Spring Explorer
要打开 Spring Explorer 视图,请执行以下操作:Window->Show View -> Other -> Spring -> Spring Explorer
I hope it halped you. :)
我希望它阻止了你。:)
回答by krupalpatel86
Use applicationContext.xml/web-context.xml or select any bean and right click -> Open Beans graph
使用 applicationContext.xml/web-context.xml 或选择任何 bean 并右键单击 -> Open Beans graph
回答by Senthil
Spring IDE based Eclipse. So you could find enough plugin over the web. eUML2 is one of that. http://www.soyatec.com/euml2/
基于 Spring IDE 的 Eclipse。所以你可以在网上找到足够的插件。eUML2 就是其中之一。http://www.soyatec.com/euml2/
回答by gouki
I suggest you try a UML plugin for Eclipse like Object Aid http://www.objectaid.com/
我建议您尝试使用 Eclipse 的 UML 插件,例如 Object Aid http://www.objectaid.com/
回答by Gordon
I think your question might be a little unclear, it is to me anyway. You asked how to diagram the classes/dependencies that have been defined in XML as beans.
我觉得你的问题可能有点不清楚,反正对我来说。您询问了如何将在 XML 中定义为 beans的类/依赖关系图解。
I'm not aware of anything in the Spring IDE (aka Eclipse plus Spring add-ons) that will look at its configuration and map what it sees there, but ObjectAid and eUML2 and Omondowill diagram classes and dependencies, but they don't won't look at what is defined in your XML to find out what classes to map, they will map everything you tell them to map.
我不知道 Spring IDE(又名 Eclipse 加 Spring 附加组件)中的任何内容会查看其配置并映射它在那里看到的内容,但 ObjectAid 和eUML2和Omondo将绘制类和依赖关系图,但它们不会不会查看您的 XML 中定义的内容来找出要映射的类,他们将映射您告诉他们要映射的所有内容。