public final class PropertiesUtils extends Object
| Constructor and Description |
|---|
PropertiesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBoolean(String key,
boolean defaultValue)
根据key获取值
|
static int |
getInt(String key)
根据key获取值
|
static int |
getInt(String key,
int defaultValue)
根据key获取值
|
static Map<String,String> |
getProperties() |
static String |
getString(String key) |
static String |
getString(String key,
String defaultValue) |
static String |
getString(String className,
String path,
String propertyKey) |
public static int getInt(String key)
key - 键public static int getInt(String key, int defaultValue)
key - 键defaultValue - 值public static boolean getBoolean(String key, boolean defaultValue)
key - 键defaultValue - 值Copyright © 2019. All rights reserved.