public static String getProperty(String key){
try{
Properties pros = new Properties();
InputStream in = PropertiesUtils.class
.getResourceAsStream("sys.properties");
pros.load(in);
in.close();
return pros.getProperty(key);
}catch (Exception e) {
return "";
}
}
try{
Properties pros = new Properties();
InputStream in = PropertiesUtils.class
.getResourceAsStream("sys.properties");
pros.load(in);
in.close();
return pros.getProperty(key);
}catch (Exception e) {
return "";
}
}