admin
2021-11-13 0f0fdfa45ec10981c466b5732964e8f378f1c0af
src/main/java/com/ks/codegenerator/utils/ServiceBuilder.java
@@ -69,10 +69,11 @@
        renamePackage(destPath + "/app/src/main/java/com/ks/app");
        replaceSettings(destPath);
        //压缩文件夹
        ZipUtil.compressToZip(destPath, new File(destPath).getParent(), new File(destPath).getName() + ".zip");
        File zip = new File(new File(destPath).getParent(), new File(destPath).getName() + ".zip");
        ZipUtil.compressToZip(destPath, zip.getParent(), zip.getName());
        //删除原来的文件夹
        FileUtil.deleteFileDir(new File(destPath));
        return destPath;
        return zip.getAbsolutePath();
    }
    private void replaceSettings(String path) throws Exception {