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