java输出当前文件所在路径

System.out.println(System.getProperty("user.dir"));//user.dir指定了当前的路径 

原文地址:https://www.cnblogs.com/mghhzAnne/p/10150668.html