public class ConfigApi extends Object
| 构造器和说明 |
|---|
ConfigApi() |
| 限定符和类型 | 方法和说明 |
|---|---|
ConfigM |
get(String tag,
String key)
获取配置(不会返回null)
|
ConfigM |
getByTagKey(String tagKey)
获取配置,根据tag/key
|
Properties |
getProperties(String tag)
获取系统配置
|
void |
reload(String tag)
重新加载一个tag的配置
|
void |
set(String tag,
String key,
String value)
设置配置
|
void |
setByTagKey(String tagKey,
String value)
设置配置,根据tag/key
|
public void reload(String tag)
public Properties getProperties(String tag)
public void setByTagKey(String tagKey, String value) throws IOException
IOExceptionpublic void set(String tag, String key, String value) throws IOException
IOExceptionCopyright © 2020. All rights reserved.