如何在java中添加新的系统属性 [英] How to add new System Properties in java

查看:522
本文介绍了如何在java中添加新的系统属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以向Java系统属性添加新值。如果有任何如何在Java系统属性中引入具有相应值的新密钥。

Is it possible to add new values to Java System Properties. If there is any how can introduce new keys with there corresponding values in Java System Properties.

推荐答案

System.setProperty 或启动JVM时使用 -Dname = value 标志

Either System.setProperty or use the -Dname=value flag when you start the JVM

这篇关于如何在java中添加新的系统属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆