fix resource

This commit is contained in:
Looly 2025-04-26 13:15:32 +08:00
parent 761c8c1757
commit 58789b61f5

View File

@ -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));