//加载配置文件
Properties prop = new Properties();
String ppath = this.getClass().getResource("/").getPath().substring(1) + "ght.properties";
ppath = URLDecoder.decode(ppath, "utf-8");
FileInputStream in = new FileInputStream(ppath);
prop.load(in);
//根据流域获取 背景图片地址
String areabase = prop.getProperty(area + "_GHT");
读取项目中的配置文件
最新推荐文章于 2021-03-16 11:14:12 发布