简体   繁体   English

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

[英]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 中看到的: 与项目 A 中的类似的运行相关按钮菜单,但没有“运行仪表板”按钮

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 '右键单击服务 -> 启用“显示服务树

在此处输入图片说明

在此处输入图片说明

I use Idea 2019.3 and this is how I managed to activate it.我使用 Idea 2019.3,这就是我设法激活它的方式。

  1. Open Services Tool Window (my shortcut is ALT+8)打开服务工具窗口(我的快捷键是 ALT+8)
  2. Add your Spring boot application if Idea didn't automatically recognized it.如果 Idea 没有自动识别它,请添加您的 Spring Boot 应用程序。

用于更快打开的服务窗口快捷方式

服务窗口

I use IntelliJ IDEA ULTIMATE 2019.1 version.我使用的是 IntelliJ IDEA ULTIMATE 2019.1 版本。

Steps to activate the feature: Run -> Edit Configurations...-> Templates -> Add " Spring Boot "激活该功能的步骤:运行 -> 编辑配置...-> 模板 -> 添加“ Spring Boot

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM