类 PropertyUtils
java.lang.Object
com.alibaba.nacos.common.utils.PropertyUtils
A convenient tool to get property or env value.
- 作者:
- Pixy Yuan on 2022/3/24
-
方法概要
修饰符和类型方法说明static intGet processors count maybe preset by env or property.static StringgetProperty(String propertyName, String envName) Get system env or property value.static StringgetProperty(String propertyName, String envName, String defaultValue) Get system env or property value.
-
方法详细资料
-
getProperty
Get system env or property value.If
System.getenv()has no value forenvName, returnSystem.getProperty(String). -
getProperty
Get system env or property value.If
System.getenv()has no value forenvName, returnSystem.getProperty(String, String)ordefaultValue. -
getProcessorsCount
public static int getProcessorsCount()Get processors count maybe preset by env or property.
-