类 ConfigUtil
java.lang.Object
com.alibaba.csp.sentinel.util.ConfigUtil
Util class for loading configuration from file or command arguments.
- 从以下版本开始:
- 1.7.0
- 作者:
- lianglin
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static StringaddSeparator(String dir) static PropertiesloadProperties(String fileName) Load the properties from provided file.
-
字段详细资料
-
CLASSPATH_FILE_FLAG
- 另请参阅:
-
-
方法详细资料
-
loadProperties
Load the properties from provided file.
Currently it supports reading from classpath file or local file.
- 参数:
fileName- valid file path- 返回:
- the retrieved properties from the file; null if the file not exist
-
addSeparator
-