【java】java獲取JVM啟動參數 System.getProperty
java獲取JVM啟動參數
System.getProperty取 -D後的key即可
public class Test { public static void main(String[] args){ System.out.println(System.getProperty("configurePath")); } }
System.getProperty取 -D後的key即可
public class Test { public static void main(String[] args){ System.out.println(System.getProperty("configurePath")); } }