File directory = new File("");// 参数为空 String courseFile = directory.getCanonicalPath(); System.out.println("********"); System.out.println(courseFile);
java获取项目跟路径
原文:https://www.cnblogs.com/lxz123/p/15180063.html