?? configfileoper.java
字號:
/**
*
*/
package com.aceway.vas.sjcraw.cbgp201.common;
import java.io.InputStream;
import java.util.Properties;
/**
* @作者: 武達
* @新疆電信彩鈴網關
* @增值業務部
* @版本: 1.0
*/
public class ConfigFileOper {
private static Properties _properties = null;
/**
* @wfunction 讀取配置文件
* @wparam key
* @wreturn
*/
public static String getProperty(String key) {
if (_properties == null) {
try {
InputStream ins = ConfigFileOper.class
.getResourceAsStream("/app.properties");
_properties = new Properties();
_properties.load(ins);
} catch (Exception ex) {
ex.printStackTrace();
_properties = null;
}
}
return _properties.getProperty(key);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -