public class SysParametersUtils extends Object
| 构造器和说明 |
|---|
SysParametersUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getAppHome()
获取应用的根目录
|
static boolean |
getBoolean(String key) |
static boolean |
getBoolean(String key,
boolean defaultValue) |
static String |
getConfigHome()
获取配置目录
|
static String |
getIndexHome()
获取索引文件目录
|
static int |
getIntValue(String key) |
static int |
getIntValue(String key,
int defaultValue) |
static String |
getLogHome()
获取日志目录
|
static String |
getPublicFileHome()
公共文件夹
|
static String |
getStringValue(String key) |
static String |
getStringValue(String key,
String defaultValue) |
static String |
getTempHome()
获取应用的临时目录
|
static String |
getUploadHome()
获取上传文件目录
|
static String |
getUploadTempHome()
获取上传文件临时目录
|
static Properties |
loadProperties() |
static Properties |
loadProperties(boolean forceReload)
读取配置文件信息
|
public static String getAppHome()
public static String getTempHome()
public static String getUploadTempHome()
public static String getConfigHome()
public static String getLogHome()
public static String getUploadHome()
public static String getIndexHome()
public static String getPublicFileHome()
public static int getIntValue(String key)
public static int getIntValue(String key, int defaultValue)
public static boolean getBoolean(String key)
public static boolean getBoolean(String key, boolean defaultValue)
public static Properties loadProperties()
public static Properties loadProperties(boolean forceReload)
forceReload - 是否强制加载Copyright © 2020 江苏南大先腾信息产业股份有限公司. All rights reserved.