Эх сурвалжийг харах

规范zhengAdmin解压路径

shuzheng 9 жил өмнө
parent
commit
c6dc57b250

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
 .idea
 *.iml
 target
-.log
+.log
+zhengAdmin

+ 1 - 1
zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/admin/util/ZhengAdminUtil.java

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