mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix resource
This commit is contained in:
parent
761c8c1757
commit
58789b61f5
@ -315,7 +315,7 @@ public class FileUtil {
|
||||
|
||||
// 如果用户需要相对项目路径,则使用project:前缀
|
||||
if (path.startsWith(UrlUtil.PROJECT_URL_PREFIX)) {
|
||||
return new File(path);
|
||||
return new File(StrUtil.subSuf(path, UrlUtil.PROJECT_URL_PREFIX.length()));
|
||||
}
|
||||
|
||||
return new File(getAbsolutePath(path));
|
||||
|
Loading…
x
Reference in New Issue
Block a user