mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
新增:获取工作目录路径
This commit is contained in:
parent
f58d25dd8d
commit
2ba14191f3
@ -196,4 +196,13 @@ public class SystemUtil {
|
|||||||
public static String getTmpDirPath() {
|
public static String getTmpDirPath() {
|
||||||
return get("java.io.tmpdir");
|
return get("java.io.tmpdir");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取工作目录路径(绝对路径)
|
||||||
|
*
|
||||||
|
* @return 工作目录路径
|
||||||
|
*/
|
||||||
|
public static String getUserDirPath() {
|
||||||
|
return get("user.dir");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user