用System.out.println(new File(".").getAbsolutePath())先查看当前所在位置。 这个是java默认的文件创建路径; 转载自: https://blog.csdn.net/arrowzz/article/details/17144693