java解析属性文件
摘要:
Properties properties = new Properties();
try {
in=PublicFunctionUtil.class.getClass().getResourceAsStream(params.get("FileUrl").toString());//属性文件路径
if(in!=null||!"null".equals(in)){
in=Thread.currentThread().getContextClassLoader().getResourceAsStream(params.get("FileName").toString());//属性文件名
properties.load(in);
verCode=properties.getProperty(params.get("FileKey").toString());//属性文件的key值
}
in.close();
map.put("new 阅读全文
posted @ 2013-07-17 20:23 qgc 阅读(318) 评论(0) 推荐(0)
浙公网安备 33010602011771号