main
黄海 2 years ago
parent 68fa518914
commit e88e67883c

@ -3,6 +3,10 @@ package com.dsideal.FengHuang.Util;
public class PathUtil {
public static String getRootClassPath() {
String path = Thread.currentThread().getContextClassLoader().getResource("").toString().replace("file:/", "");
return path.substring(0, path.length() - 1);
path = path.substring(0, path.length() - 1);
if (CommonUtil.getOsSystemType() == 2) {
if (!path.startsWith("/")) path = "/" + path;
}
return path;
}
}

Loading…
Cancel
Save