File file=new File(""); String abspath=file.getAbsolutePath(); System.out.println(abspath); //即可得到
版权声明:本文为博主原创文章,未经博主允许不得转载。