-Dxxx可以代表自定义参数
#JVM arg
-Dmyarg='66666'
package com.company;
public class Main {
public static void main(String[] args) {
System.out.println("111");
System.out.println(System.getProperty("myarg"));
// write your code here
}
}
运行结果如图: