public class Config extends Object
| 构造器和说明 |
|---|
Config() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
exists(String key) |
static <T> T |
getBean(String key,
Class<T> beanClass) |
static <T> List<T> |
getBeans(String key,
Class<T> beanClass) |
static boolean |
getBool(String key) |
static boolean |
getBool(String key,
boolean defaultValue) |
static Configable |
getConfigImpl()
提供一个可以获取配置impl的入口,
用于展示出当前配置impl所有配置的结果集,
修改了配置刷新相应配置,免重启服务,免发布.
|
static double |
getDouble(String key) |
static double |
getDouble(String key,
double defaultValue) |
static float |
getFloat(String key) |
static float |
getFloat(String key,
float defaultValue) |
static int |
getInt(String key) |
static int |
getInt(String key,
int defaultValue) |
static long |
getLong(String key) |
static long |
getLong(String key,
long defaultValue) |
static Properties |
getProperties() |
static String |
getStr(String key) |
static String |
getStr(String key,
String defaultValue) |
static long |
refreshConfigSet(String prefix) |
static Configable |
subset(String prefix) |
public static boolean exists(String key)
public static Properties getProperties()
public static int getInt(String key)
public static long getLong(String key)
public static boolean getBool(String key)
public static float getFloat(String key)
public static double getDouble(String key)
public static int getInt(String key, int defaultValue)
public static long getLong(String key, long defaultValue)
public static boolean getBool(String key, boolean defaultValue)
public static float getFloat(String key, float defaultValue)
public static double getDouble(String key, double defaultValue)
public static Configable subset(String prefix)
public static long refreshConfigSet(String prefix)
public static Configable getConfigImpl()
Copyright © 2018. All rights reserved.