mirror of https://gitee.com/y_project/RuoYi.git
服务监控新增运行参数信息显示
parent
b04eac0566
commit
8c6546f5d8
|
@ -174,6 +174,10 @@
|
|||
<td colspan="1">项目路径</td>
|
||||
<td colspan="3" th:text="${server.sys.userDir}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">运行参数</td>
|
||||
<td colspan="3" th:text="${server.jvm.inputArgs}"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -119,4 +119,12 @@ public class Jvm
|
|||
{
|
||||
return DateUtils.getDatePoor(DateUtils.getNowDate(), DateUtils.getServerStartDate());
|
||||
}
|
||||
|
||||
/**
|
||||
* 运行参数
|
||||
*/
|
||||
public String getInputArgs()
|
||||
{
|
||||
return ManagementFactory.getRuntimeMXBean().getInputArguments().toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue