Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以在不对上下文执行 refresh() 的情况下构造 Spring 的 bean 依赖图?通过使用 Spring Readers 收集的 BeanDefinitions 左右
我想以最少的内存/时间浪费为应用程序构建依赖关系图。
谢谢!
Java IDE 支持天生或通过插件绘制 spring 依赖图。
在安装了 Spring Source Tool Suite 的 Eclipse 中,您可以通过在 Spring Explorer 视图中选择 spring 配置 (xml) 文件并右键单击并选择“打开依赖关系图”来查看依赖关系图。
在 IntelliJ IDEA 中,您可以通过右键单击配置文件并选择 Diagrams -> Show Diagram 来查看它。