package com.lm.listener;
import java.io.IOException;
import java.io.InputStream;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;
/**
*
* @author kris
*
*/
public class DataConstants {
public static String file_path = null;
public static String dowmdoc=null;
public static String downFile=null;
static {
InputStream inputStream = Constants.class.getResourceAsStream("path.properties");
Properties p = new Properties();
try {
p.load(inputStream);
dowmdoc=p.getProperty("doc_path");
file_path = p.getProperty("file_path");
img_path = p.getProperty("img_path");
downFile=p.getProperty("downFile");
} catch (IOException e) {
e.printStackTrace();
}
}
public static Map<String, Map<Integer,String>> dataMap = null;
//事例
public static Map<Integer, String> sexs = new LinkedHashMap<Integer, String>();
public static String img_path;
static {
sexs.put(0, "--");
sexs.put(1, "否");
sexs.put(2, "是");
}
}
读取property文件内容
最新推荐文章于 2021-02-21 15:28:40 发布