Browse Source

刚才更新犯了一个2问题

4.1.3.A
jueyue 10 years ago
parent
commit
aa571a30ad
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      easypoi-base/src/main/java/org/jeecgframework/poi/util/POIPublicUtil.java

+ 1
- 2
easypoi-base/src/main/java/org/jeecgframework/poi/util/POIPublicUtil.java View File

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


Loading…
Cancel
Save