java输出当前文件所在路径

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

posted @ 2018-12-20 17:24  金一九  阅读(745)  评论(0)    收藏  举报