@@ -0,0 +1,1418 @@
+package com.gochinatv.cdn.api.normal;%0A%0Aimport java.util.Iterator;%0Aimport java.util.Map;%0Aimport java.util.Map.Entry;%0Aimport java.util.Properties;%0Aimport java.util.Set;%0A%0Apublic class JarArgsTest %7B%0A   %0A%09public static void main(String%5B%5D args) %7B%0A       //java -Dinterval=30 -Dname=zhangsan -Dtest=test -jar jarargsTest.jar%0A       String interval = System.getProperty(%22interval%22);%0A       String name = System.getProperty(%22name%22);%0A       String test = System.getProperty(%22test%22);%0A       //%E4%BB%A5%E4%B8%8A%E6%98%AF%E8%8E%B7%E5%8F%96%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8F%82%E6%95%B0%E7%9A%84%0A       System.out.println(%22interval:==%22+interval+%22 name:==%22+name+%22 test:==%22+test);%0A       %0A       System.out.println(%22============prop=================%22);%0A       Properties properties = System.getProperties();%0A       Set%3CEntry%3CObject, Object%3E%3E entrySet = properties.entrySet();%0A       for (Iterator iterator = entrySet.iterator(); iterator.hasNext();) %7B%0A%09%09Entry%3CObject, Object%3E entry = (Entry%3CObject, Object%3E) iterator.next();%0A%09%09  System.out.println(entry.getKey()+%22----------%22+entry.getValue());%0A%09   %7D%0A       System.out.println(%22===========env==================%22);%0A       Map%3CString, String%3E getenv = System.getenv();%0A       Set%3CEntry%3CString, String%3E%3E entrySet2 = getenv.entrySet();%0A       for (Iterator iterator = entrySet2.iterator(); iterator.hasNext();) %7B%0A   %09%09Entry%3CObject, Object%3E entry = (Entry%3CObject, Object%3E) iterator.next();%0A   %09%09  System.out.println(entry.getKey()+%22----------%22+entry.getValue());%0A   %09   %7D%0A%09%7D%0A%7D%0A

test java -D自定义参数