摘要: 适用于在IDE中运行项目 方式一: URL url = 类名.class.getClassLoader().getResource("conf.properties"); File file = new File(url.getFile()); 方式二: InputStream is = 类名.cl 阅读全文
posted @ 2019-09-03 17:13 李传炎 阅读(1487) 评论(0) 推荐(0)