[英]How to activate IDEA's “Run Dashboard” feature
I have a window tool named " Run Dashboard " in Project A, but I can't activate this window in Project B. Does anyone know how to solve this?我在项目 A 中有一个名为“运行仪表板”的窗口工具,但我无法在项目 B 中激活此窗口。有谁知道如何解决这个问题? This feature appeared in IntelliJ IDEA version 2017.3.此功能出现在 IntelliJ IDEA 2017.3 版中。
This is what I see in Project A:这是我在项目 A 中看到的:
This is what I see in Project B:这是我在项目 B 中看到的:
This option is present but not activatable out in Project B:此选项在项目 B 中存在但不可激活:
but it's activatable in Project A:但它可以在项目 A 中激活:
Add the run configurations to the Configurations available in Run Dashboard list in the Edit Run/Debug Configurations dialog under the Defaults ( Templates in the current IDE versions ) node:将运行配置添加到“默认” (当前 IDE 版本中的模板)节点下“ 编辑运行/调试配置”对话框中的“运行仪表板”列表中的“配置” :
In Spring Boot projects Run Dashboard becomes enabled automatically if you have more than one run/debug configuration of this type.在 Spring Boot 项目中,如果您有多个这种类型的运行/调试配置,运行仪表板会自动启用。
@CrazyCoder is right, you need to have more than one "Spring boot run/debug configuration". @CrazyCoder 是对的,您需要有不止一个“Spring 启动运行/调试配置”。 Try to duplicate the one you already have and IntelliJ will automaticaly prompt you to run the dashboard.尝试复制您已有的,IntelliJ 会自动提示您运行仪表板。
In Intellij 2020 now Dashboard is by the name of Services see below screenshot and by default, the view is like this在 Intellij 2020 中,现在仪表板的名称为服务,请参见下面的屏幕截图,默认情况下,视图是这样的
To get back to the old view of the initial version of spring-dashboard .回到spring-dashboard 初始版本的旧视图。
Right-click on Services -> Enable ' Show Service Tree '右键单击服务 -> 启用“显示服务树”
My project is Spring Cloud project.我的项目是 Spring Cloud 项目。 So I add Spring Boot with the below flow.因此,我使用以下流程添加 Spring Boot。
Edit Configuratio n编辑配置 Select Default > Configurations available in Run Dashboard > add Spring Boot > Apply > OK选择Default > Configurations available in Run Dashboard > add Spring Boot > Apply > OK Then we can see the Run Dashboard view in the left down side.然后我们可以在左侧看到Run Dashboard视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.