public class ConfigService extends Object
| Constructor and Description |
|---|
ConfigService() |
| Modifier and Type | Method and Description |
|---|---|
static Config |
getAppConfig()
Get Application's config instance.
|
static Config |
getConfig(String namespace)
Get the config instance for the namespace.
|
static ConfigFile |
getConfigFile(String namespace,
ConfigFileFormat configFileFormat) |
public static Config getAppConfig()
public static Config getConfig(String namespace)
namespace - the namespace of the configpublic static ConfigFile getConfigFile(String namespace, ConfigFileFormat configFileFormat)
Copyright © 2022 Ctrip, Inc.. All rights reserved.