idea multi-module project opens RunDashBoard (X)

When using the micro-spring cloud service, a plurality of services can be placed in a plurality of independent sub-modules (Module1) in the form of a project which, when too many services, one is often not very convenient to start, idea has an intimate RunDashBoard.

However, when this close, this interface is often hard to find, here is the solution:

Step 1: Find .idea following workspace.xml in the project

Step two: find RunDashboard components in xml

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

重启之后即可看到熟悉的rundashboard界面。
注意,在修改的时候不要直接在idea里面修改,需要关闭当前项目,然后用编辑器修改,否则会导致idea卡死!!!

 

Guess you like

Origin www.cnblogs.com/myitnews/p/11785334.html