Run Configurations(Debug Configurations)->Arguments里填写program arguments和VM arguments
如图:
1.program arguments存储在String[] args里
2.VM arguments设置的是虚拟机的属性,是传给java虚拟机的。KV形式存储的,是可以通过System.getProperty("PropertyName")获取的
人怂胆子小,手拿大刀跑。
如图:
1.program arguments存储在String[] args里
2.VM arguments设置的是虚拟机的属性,是传给java虚拟机的。KV形式存储的,是可以通过System.getProperty("PropertyName")获取的