public class PropertyUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getProcessorsCount()
Get processors count maybe preset by env or property.
|
static String |
getProperty(String propertyName,
String envName)
Get system env or property value.
|
static String |
getProperty(String propertyName,
String envName,
String defaultValue)
Get system env or property value.
|
public static String getProperty(String propertyName, String envName)
If System.getenv() has no value for envName,
return System.getProperty(String).
public static String getProperty(String propertyName, String envName, String defaultValue)
If System.getenv() has no value for envName,
return System.getProperty(String, String) or defaultValue.
public static int getProcessorsCount()
Copyright © 2018–2024 Alibaba Group. All rights reserved.