查找Spring bean参考? [英] Finding spring bean references?

查看:102
本文介绍了查找Spring bean参考?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像eclipse这样的IDE具有这样的功能,可以通过按住Ctrl键单击或使用Ctrl + Shift + G查找调用者来执行方法调用。



在* .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屋!

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