作者 RuoYi

服务监控新增运行参数信息显示

@@ -119,4 +119,12 @@ public class Jvm @@ -119,4 +119,12 @@ public class Jvm
119 { 119 {
120 return DateUtils.getDatePoor(DateUtils.getNowDate(), DateUtils.getServerStartDate()); 120 return DateUtils.getDatePoor(DateUtils.getNowDate(), DateUtils.getServerStartDate());
121 } 121 }
  122 +
  123 + /**
  124 + * 运行参数
  125 + */
  126 + public String getInputArgs()
  127 + {
  128 + return ManagementFactory.getRuntimeMXBean().getInputArguments().toString();
  129 + }
122 } 130 }
@@ -128,6 +128,10 @@ @@ -128,6 +128,10 @@
128 <td colspan="1" class="el-table__cell is-leaf"><div class="cell">项目路径</div></td> 128 <td colspan="1" class="el-table__cell is-leaf"><div class="cell">项目路径</div></td>
129 <td colspan="3" class="el-table__cell is-leaf"><div class="cell" v-if="server.sys">{{ server.sys.userDir }}</div></td> 129 <td colspan="3" class="el-table__cell is-leaf"><div class="cell" v-if="server.sys">{{ server.sys.userDir }}</div></td>
130 </tr> 130 </tr>
  131 + <tr>
  132 + <td colspan="1" class="el-table__cell is-leaf"><div class="cell">运行参数</div></td>
  133 + <td colspan="3" class="el-table__cell is-leaf"><div class="cell" v-if="server.sys">{{ server.jvm.inputArgs }}</div></td>
  134 + </tr>
131 </tbody> 135 </tbody>
132 </table> 136 </table>
133 </div> 137 </div>