idea使用Run DashBoard

我使用的版本是 Intellij IDEA 2017.2.6

运用spring cloud框架基于spring boot构建微服务,一般需要启动多个应用程序,在idea开发工具中,多个同时启动的应用需要在RunDashboard运行仪表盘中可以更好的管理,但有时候idea中的RunDashboard窗口没有显示出来,也找不到直接的开启按钮,下面就来介绍两种开启方法

方法/步骤

1、点击如图所示位置的下来三角按钮,然后选择Edit Configurations,或者点击菜单栏Run》Edit Configurations

springboot在idea的RunDashboard如何显示出来

 2、在运行配置窗口,选择一条springboot的运行配置,然后点击上方的复制按钮进行复制副本

springboot在idea的RunDashboard如何显示出来

springboot在idea的RunDashboard如何显示出来

 3、复制完成之后,点击OK确定按钮,然后在屏幕右下角可以看到一个弹框

 springboot在idea的RunDashboard如何显示出来

4、点击弹框右下角的向下的小箭头,展开弹框详情信息,然后点击Show run configurations in Run Dashboard

 springboot在idea的RunDashboard如何显示出来

 5、如图所示,则立即可以看到Run Dashboard窗口已经成功显示出来了,在Run Dashboard中可以看到当前所有的启动配置,直接点击可以方便的启动和停止

 springboot在idea的RunDashboard如何显示出来

 6、如图以上方法还没有显示出来的话,则可以通过修改idea的workspace.xml的方式来快速打开Run Dashboard窗口

 springboot在idea的RunDashboard如何显示出来

 打开workspace.xml文件之后,找到component为RunDashboard的节点处,然后在component标签里添加

<option name="configurationTypes">
    <set>
       <option value="SpringBootApplicationConfigurationType" />
    </set>
</option>

 最后保存即可,保存完成之后立即自动弹出Run Dashboard窗口了

 springboot在idea的RunDashboard如何显示出来

另一种方式

原文地址:https://jingyan.baidu.com/article/ce4366495a1df73773afd3d3.html 

猜你喜欢

转载自blog.csdn.net/dyr_1203/article/details/84874479
今日推荐