Java获取项目根路径方法 String fileName = this.getClass().getResource("/").toString(); fileName.substring(5, fileName.length()); 相关文章: 2021-11-29 2021-11-27 2021-11-27 2021-09-04 2021-09-11