是否有工具可以可视化实时 Spring 应用程序上下文?

发布于 2024-07-11 06:39:24 字数 1542 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

深巷少女 2024-07-18 06:39:24

我正在寻找相同的工具。 不幸的是,除了等待 Spring 3.2 之外,我没有看到任何其他可能性,那里应该有这个功能。 请参阅https://jira.springsource.org/browse/SPR-9662

I am looking for the same tool. Unfortunately, I do not see any other possibility than to wait for Spring 3.2 where should be that feature. See https://jira.springsource.org/browse/SPR-9662

若能看破又如何 2024-07-18 06:39:24

作为 banterCZ 的回答的后续,Spring Tool Suite 3.2.0 中的 Live Beans Graph 现在几乎完全符合您的要求后,虽然没有出口能力。

请参阅 STS v3.2.0 新的值得注意的页面

As a follow up to banterCZ's answer, the Live Beans Graph in Spring Tool Suite 3.2.0 now does almost exactly what you're after, though without export capabilities.

See the STS v3.2.0 New and Noteworthy page.

等待我真够勒 2024-07-18 06:39:24

我编写了一个 ApplicationContextDumper 将实时 Spring 应用程序上下文转储到日志中。 它显示自动装配的 Bean 和通过组件扫描加载的 Bean,但无法显示应用了哪个方面。

源代码和示例位于 https://gist.github.com/aleung/1347171

I have written an ApplicationContextDumper to dump live spring application context into log. It shows autowired beans and beans loaded by component scan, but can't show which aspect is applied.

Source code and example in https://gist.github.com/aleung/1347171

被翻牌 2024-07-18 06:39:24

您是否正在寻找类似 bean 图表 的内容? 它是spring ide的一部分,可以在项目级别生成。

Are you looking for something like bean graph? It is part of spring ide and can be generated at the project level.

踏雪无痕 2024-07-18 06:39:24

也许您可以通过 JXInsight http://www.jinspired.com/products/jxinsight/
他们似乎有一个 Spring 扩展,并且可能可以显示对象图可视化。

Perhaps you find something with JXInsight http://www.jinspired.com/products/jxinsight/
They seem to have a Spring Extension and they can probably show object graph visualizations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文