Java Application????properties???????
???????????? ???????[ 2013/11/29 9:47:29 ] ????????
??????java??ó??????У??????????????????????????????????????????????????????xml??????????java?д???.properties???????????????????á???java?У???Properties????????????????????????????????????????????????????????
public static String getvalue(String key)
{
Properties p=new Properties();
FileInputStream fis;
String url = new File("").getAbsolutePath() + File.separator+ "config.properties"; // ???λ?????????μ?config.properties???????·??
try {
fis = new FileInputStream(url);
p.load(fis);
fis.close();
} catch (Exception e) {
// TODO Auto-generated catch block
System.out.print("problems with properties");
e.printStackTrace();
}
return p.getProperty(key);
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11