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");
精彩评论