和谐牛排

文章
5
资源
1
加入时间
4年2月16天

Java项目拿到当前项目所在目录

Java项目拿到当前项目所在目录两种方式String projectPath1 = System.getProperty("user.dir");System.out.println("projectPath1==" + projectPath1);File dir = new File(""); //参数为空String projectPath2 = dir.getCanonic...