2008-06-16

读取属性文件

private static void readProperties() throws IOException {
Properties props = new Properties();
InputStream inStream = Spike.class.getResourceAsStream("Test.properties");
props.load(inStream);
Enumeration enums = props.propertyNames();
while (enums.hasMoreElements()) {
String key = (String) enums.nextElement();

}
评论
发表评论

您还没有登录,请登录后发表评论

liuxingyu3000
搜索本博客
我的相册
存档
最新评论