摘要: 属性文件有时候我们随便放到classes/ , 有时候需要放到指定的目录中去. 后者更零活,所以我们使用下面的代码来读取配置文件: props = new Properties(); FileInputStream fis = new FileInputStream( "com/config/config.properties"); props.load(fis); ... 阅读全文