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

pull/149/head
RuoYi 2019-12-02 15:02:31 +08:00
parent 1155bcb22d
commit 77d3db4cb0
1 changed files with 1 additions and 0 deletions

View File

@ -263,6 +263,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)