reading the property in java from command line

前端 未结 3 391
温柔的废话
温柔的废话 2021-01-19 16:37

How to read some property passed from command line like -Dthread.count I saw it, but I\'m not sure how to read that one in java code

3条回答
  •  生来不讨喜
    2021-01-19 16:56

    Java has this documented:

    http://download.oracle.com/javase/tutorial/essential/environment/sysprop.html

    Basically, you're reading in the value of a System Properties. The link above gives you an example.

提交回复
热议问题