美文网首页工具篇-常用软件
idea自动开启run dashboard

idea自动开启run dashboard

作者: nico1988 | 来源:发表于2019-07-13 18:40 被阅读0次
dashboard.png

JetBrains自IntelliJ IDEA 2017.2.1——其中包含了所谓的“运行仪表板”——以一种方便的方式维护(启动、停止、调试等)。

但是,有时在启动应用时,指示板不会立即显示出来,有2种方法可以解决这个问题

  • 配置中设置
    点击help >> edit custom vm options,并启用“Spring Boot Settings”->“Show in run dashboard”:
-Dide.run.dashboard=true。
activateRunDashboard.gif

如果你不幸没有“Spring Boot Settings”->“Show in run dashboard”这个选项,可以选择edit configuration编辑template,选择springboot


image.png
image.png
  • 工程目录下找.idea文件夹下的workspace.xml
<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

    本文链接:https://www.haomeiwen.com/subject/xdvmkctx.html