What's the difference between program arguments and VM arguments?

前端 未结 5 1946
忘了有多久
忘了有多久 2021-01-31 03:15

I found only when I put -Dcontext=web into VM arguments, the value can be read by System.getproperty method. I am wondering what\'s the difference betw

5条回答
  •  一向
    一向 (楼主)
    2021-01-31 03:42

    Program args are available via the args [] of your main(String args[]) method

提交回复
热议问题