| 构造器和说明 |
|---|
ResourceUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
add(String key,
String value) |
static boolean |
containsProperty(String key) |
static String |
get(String key,
String... defaultValue)
已过时。
|
static Properties |
getAllProperties()
获取所有配置的副本
|
static Properties |
getAllProperties(String prefix)
获取指定前缀的配置
|
static String |
getAndValidateProperty(String key) |
static boolean |
getBoolean(String key) |
static int |
getInt(String key) |
static int |
getInt(String key,
int defalutValue) |
static long |
getLong(String key) |
static long |
getLong(String key,
long defalutValue) |
static String |
getProperty(String key) |
static String |
getProperty(String key,
String defaultValue) |
static void |
merge(Properties properties) |
public static Properties getAllProperties()
public static Properties getAllProperties(String prefix)
@Deprecated public static String get(String key, String... defaultValue)
public static int getInt(String key)
public static int getInt(String key, int defalutValue)
public static long getLong(String key)
public static long getLong(String key, long defalutValue)
public static boolean getBoolean(String key)
public static void merge(Properties properties)
public static boolean containsProperty(String key)
Copyright © 2017. All rights reserved.