public final class ConfigUtil extends Object
Util class for loading configuration from file or command arguments.
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH_FILE_FLAG |
| Modifier and Type | Method and Description |
|---|---|
static String |
addSeparator(String dir) |
static Properties |
loadProperties(String fileName)
Load the properties from provided file.
|
public static final String CLASSPATH_FILE_FLAG
public static Properties loadProperties(String fileName)
Load the properties from provided file.
Currently it supports reading from classpath file or local file.
fileName - valid file pathCopyright © 2021 Alibaba Group. All rights reserved.