摘要: //使用File获取resources里面资源文件的相对路径 若文件名称为中文可能会报文件不存在 File file = new File(this.getClass().getResource("/province-city.josn").getPath()); //使用inputStream I 阅读全文
posted @ 2020-08-19 15:20 y-xs 阅读(2933) 评论(0) 推荐(1) 编辑