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