|
@@ -214,12 +214,11 @@ public class POIPublicUtil { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public static String getWebRootPath(String filePath) {
|
|
|
public static String getWebRootPath(String filePath) {
|
|
|
// 这个path还是要测试的
|
|
|
|
|
|
try {
|
|
|
try {
|
|
|
String path = POIPublicUtil.class.getClassLoader().getResource("").toURI().getPath();
|
|
|
String path = POIPublicUtil.class.getClassLoader().getResource("").toURI().getPath();
|
|
|
path = path.replace("WEB-INF/classes/", "");
|
|
|
path = path.replace("WEB-INF/classes/", "");
|
|
|
path = path.replace("file:/", "");
|
|
|
path = path.replace("file:/", "");
|
|
|
return path;
|
|
|
|
|
|
|
|
|
return path + filePath;
|
|
|
} catch (URISyntaxException e) {
|
|
|
} catch (URISyntaxException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
}
|
|
|