html怎么通过file获取文件路径html通过file获取文件路径方法:第一种: File f = new File(this.getClass().getResource("").getPath())System.out.println(f)结果:2023-03-01html-css610