如何激活IDEA的“运行仪表板”功能

2022-09-01 09:26:30

我在项目 A 中有一个名为“运行仪表板”的窗口工具,但在项目 B 中无法激活此窗口。有谁知道如何解决这个问题?此功能出现在IntelliJ IDEA版本2017.3中。

这是我在项目A中看到的:long menu of run-related buttons with "Run Dashboard" button at end

这是我在项目B中看到的:menu of run-related buttons similar to the one in Project A, but without the "Run Dashboard" button

此选项在项目 B 中存在,但不可激活:screenshot of search for "Run Dashboard" feature showing it grayed out

但它在项目A中是可激活的:screenshot of search for "Run Dashboard" feature showing it selectable


答案 1

将运行配置添加到“编辑运行/调试配置”对话框中“默认值当前 IDE 版本中的模板)”节点下的“运行仪表板中可用的配置”列表中:

dashboard

在 Spring Boot 项目中,如果您有多个此类型的运行/调试配置,则“运行仪表板”将自动启用。


答案 2

@CrazyCoder是正确的,您需要具有多个“Spring boot run/debug配置”。尝试复制您已经拥有的仪表板,IntelliJ将自动提示您运行仪表板。


推荐