如图:

Run Configurations(Debug Configurations)->Arguments里填写program arguments和VM arguments

1.program arguments存储在String[] args里

2.VM arguments设置的是虚拟机的属性,是传给java虚拟机的。KV形式存储的,是可以通过System.getProperty("PropertyName")获取的

 

相关文章: