摘要: java web项目中 获取resource路径下的文件路径 public GetResource{ String path = GetResource.class.getClassLoader().getResource("xx/xx.txt").getPath(); } 扩展 一 相对路径的获得 阅读全文
posted @ 2019-05-29 22:53 Java大笨鸟 阅读(24331) 评论(0) 推荐(0) 编辑