java获取项目跟路径

时间:2021-08-24 16:51:19   收藏:0   阅读:7
File directory = new File("");// 参数为空
String courseFile = directory.getCanonicalPath();
System.out.println("********");
System.out.println(courseFile);

 

原文:https://www.cnblogs.com/lxz123/p/15180063.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!