代码生成防止缓存内的数据没有及时写入到zip文件

master
RuoYi 5 years ago
parent bc827ef377
commit 2e2882b0d5
  1. 1
      ruoyi/src/main/java/com/ruoyi/project/tool/gen/service/GenTableServiceImpl.java

@ -262,6 +262,7 @@ public class GenTableServiceImpl implements IGenTableService
zip.putNextEntry(new ZipEntry(VelocityUtils.getFileName(template, table)));
IOUtils.write(sw.toString(), zip, Constants.UTF8);
IOUtils.closeQuietly(sw);
zip.flush();
zip.closeEntry();
}
catch (IOException e)

Loading…
Cancel
Save