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