开发者

reading the property in java from command line

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


String value = System.getProperty("thread.count");


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.


Use System.getProperty("thread.count");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜