作用:设置JVM系统属性
-Dkey=value
官方给出的解释: Set a system property value. If value is a string that contains spaces, you must enclose the string in double quotes.
比如:-DuserName="zhang san"
读取:System.getProperty("name");
作用:设置JVM系统属性
-Dkey=value
官方给出的解释: Set a system property value. If value is a string that contains spaces, you must enclose the string in double quotes.
比如:-DuserName="zhang san"
读取:System.getProperty("name");
转载于:https://www.cnblogs.com/luohaonan/p/9817006.html