From 8c6546f5d8f223801bc13bc56825cc73316944e3 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 20 Feb 2022 14:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=9B=91=E6=8E=A7=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=BF=90=E8=A1=8C=E5=8F=82=E6=95=B0=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/monitor/server/server.html | 4 ++++ .../java/com/ruoyi/framework/web/domain/server/Jvm.java | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ruoyi-admin/src/main/resources/templates/monitor/server/server.html b/ruoyi-admin/src/main/resources/templates/monitor/server/server.html index dae4c4b04..f16c45e71 100644 --- a/ruoyi-admin/src/main/resources/templates/monitor/server/server.html +++ b/ruoyi-admin/src/main/resources/templates/monitor/server/server.html @@ -174,6 +174,10 @@ 项目路径 + + 运行参数 + + diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java index f29d2cbe6..604ca020a 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java @@ -119,4 +119,12 @@ public class Jvm { return DateUtils.getDatePoor(DateUtils.getNowDate(), DateUtils.getServerStartDate()); } + + /** + * 运行参数 + */ + public String getInputArgs() + { + return ManagementFactory.getRuntimeMXBean().getInputArguments().toString(); + } }