使用Properties类在控制台打印出JVM参数:
package com;
import java.util.Properties;
public class propertiestest {
public static void main(String[] args) {
show1();
}
private static void show1() {
Properties properties = System.getProperties();
properties.list(System.out);
}
}
https://blog.csdn.net/dengfengling999/article/details/123997673