Run --> Edit Configurations
然后 运行程序,控制台就会打印你设定的参数的结果
Idea指定JVM命令参数
原文:https://www.cnblogs.com/lihaoyang/p/12424633.html