System.out.println(System.getProperty("user.dir"));//user.dir指定了当前的路径 转载于:https://www.cnblogs.com/mghhzAnne/p/10150668.html