mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
!1267 新增:获取工作目录路径
Merge pull request !1267 from Toint/cherry-pick-1727201282
This commit is contained in:
commit
cd1dc20f6d
@ -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