private static Properties properties;
static {
try {
properties = new Properties();
String filePath = System.getProperty("user.dir") + "/config/config.properties";
InputStream in = new BufferedInputStream(new FileInputStream(filePath));
properties.load(in);
} catch (IOException e) {
e.printStackTrace();
}
}
public static String getProperty(String Key) {
return properties.getProperty(Key);
}
阅读(2630) | 评论(0) | 转发(0) |