开发者

Finding spring bean references?

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 ref开发者_Go百科erenced 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


IntelliJ IDEA also has Spring bean dependency graph viewer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜