/**
* 获取数据库配置参数
*
* @param key关键字
* @return
*/
public static String getConfigByStringKey(String key) {
String configValue = null;
try {
if (null == configProperties) {
InputStream in = com.**.util.SystemUtil.class
.getResourceAsStream("/config/config.properties");
configProperties = new Properties();
configProperties.load(in);
}
configValue = configProperties.getProperty(key);
} catch (Exception ioe) {
FrameworkPrintLog.printErrorLogMessage(
"com.framework.ant.servlet.util.SystemUtil",
"SystemUtil:getConfigByStringKey(String) - " + ioe);
}
return configValue;
}
▄█▀█●各位老铁,如果我的代码能够帮助到你,请给我一个赞吧!