查找Spring bean参考? [英] Finding spring bean references?
问题描述
在* .spring .xml可以Ctrl-click一个引用的类。这是很好的。
有没有办法找出关于bean之间的引用的东西?
例如: p>
这个bean在其他.spring.xml中引用在哪里?
这个bean引用定义在哪里? >
最接近它是Spring工具套件中的 Spring Explorer视图。您可以在其中探索您的bean配置,甚至可以查看依赖关系图(图形表示您的bean配置)。
STS是SpringSource构建的Eclipse,包括Spring工具和更多。可以从 http://www.springsource.com/downloads/sts 免费下载/ p>
IDEs like eclipse have that fance feature to follow a method-call by Ctrl-click or to find callers using Ctrl+Shift+G.
In *.spring.xml one can Ctrl-click on a referenced class. That is fine.
Is there anyway to find out something about references between beans?
E.g.:
Where is this bean referenced in other .spring.xmls?
Where is this bean reference defined?
The closest to it is Spring Explorer View found in Spring Tool Suite. There you can explore your bean configurations and even see the Dependency graph (graphical representation of your bean configuration)
STS is SpringSource's build of Eclipse which includes Spring tools and a lot more. It can be downloaded for free from http://www.springsource.com/downloads/sts
这篇关于查找Spring bean参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!