Java获取项目当前路径代码

来源:互联网 发布:window8 ftp yum 源 编辑:程序博客网 时间:2024/06/15 02:14

获取项目当前绝对路径的方法:

public static String getAbsolutePath(String path) {    File directory = new File(path);    return directory.getAbsolutePath();}


1 0
原创粉丝点击