摘要: // 第一种:获取类加载的根路径 D:\git\daotie\daotie\target\classes File f = new File(this.getClass().getResource("/").getPath()); System.out.println(f); // 获取当前类的所在工程路径; ... 阅读全文
posted @ 2019-04-01 10:22 濤叔 阅读(2289) 评论(0) 推荐(0) 编辑