SpringBoot|MVC|SpringCloud

idea中Springcloud同时运行多个模块、微服务

idea中有个窗口叫做 Run DashBoard 在这里可以管理多个模块的启停,这个面板一般情况下是关闭的打开Run DashBoard面板

 

 

 

在工程的.idea中找到workspace.xml,并找到RunDashboard

<component name="RunDashboard">
  <option name="ruleStates">
    <list>
      <RuleState>
        <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
      </RuleState>
      <RuleState>
        <option name="name" value="StatusDashboardGroupingRule" />
      </RuleState>
    </list>
  </option>
</component>

添加

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

 

添加以后如下

<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>
</component>

 

重启idea

Run DashBoard 窗口就自动显示到下边了

选中你要运行的模块(多选)右击运行即可

 

posted @ 2019-04-29 14:24  小三毛  阅读(9977)  评论(0编辑  收藏  举报
SpringBoot|MVC|SpringCloud