gpt4 book ai didi

eclipse - 查找 spring bean 引用?

转载 作者:行者123 更新时间:2023-12-04 06:29:51 25 4
gpt4 key购买 nike

像 eclipse 这样的 IDE 具有这种奇特的功能,可以通过 Ctrl-单击来跟踪方法调用或使用 Ctrl+Shift+G 查找调用者。

在 *.spring.xml 中,可以按住 Ctrl 键单击引用的类。那没关系。

无论如何要找出有关bean之间引用的信息吗?

例如。:

这个 bean 在其他 .spring.xmls 中引用在哪里?

这个 bean 引用在哪里定义?

最佳答案

离它最近的是在 Spring Tool Suite 中找到 Spring Explorer View .在那里你可以探索你的 bean 配置,甚至可以看到依赖关系图(你的 bean 配置的图形表示)

STS 是 SpringSource 的 Eclipse 构建,其中包括 Spring 工具等等。可以从http://www.springsource.com/downloads/sts免费下载。

关于eclipse - 查找 spring bean 引用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5553883/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com