IDEA通过RunDashboard快速管理和启动多个微服务
一、先看微服务项目构成如下图
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191205104225613.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM0MTk1NTA3,size_16,color_FFFFFF,t_70)
二、先找到工程下.idea文件下的workspace.xml,并找到RunDashboard
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191205104554641.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM0MTk1NTA3,size_16,color_FFFFFF,t_70)
然后搜索 RunDashboard
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
<option name="contentProportion" value="0.2744186" />
</component>
添加如下内容
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
如果沒有RunDashboard,直接把下面完整的貼進去也可以
<component name="RunDashboard">
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
<option name="contentProportion" value="0.2744186" />
</component>
三、按下ctrl+s保存,如果有微服务运行过就可以看到如下界面了:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191205105032257.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM0MTk1NTA3,size_16,color_FFFFFF,t_70)
这样就完成了微服务的快速启动设置了。