瀏覽代碼

修复部分打包方式导致zheng-ui解压目标目录不对的问题

shuzheng 9 年之前
父節點
當前提交
2b6b0d7e1b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      zheng-common/src/main/java/com/zheng/common/util/ZhengAdminUtil.java

+ 1 - 1
zheng-common/src/main/java/com/zheng/common/util/ZhengAdminUtil.java

@@ -27,7 +27,7 @@ public class ZhengAdminUtil implements InitializingBean, ServletContextAware {
         _log.info("zheng-ui.jar 版本: {}", version);
         String jarPath = servletContext.getRealPath("/WEB-INF/lib/zheng-ui-" + version + ".jar");
         _log.info("zheng-ui.jar 包路径: {}", jarPath);
-        String resources = servletContext.getRealPath("/resources") + "/zheng-ui";
+        String resources = servletContext.getRealPath("/") + "/resources/zheng-ui";
         _log.info("zheng-ui.jar 解压到: {}", resources);
         JarUtil.decompress(jarPath, resources);
         _log.info("===== 解压zheng-ui完成 =====");