修改生成代码压缩包内容为空问题
main
zxf 5 days ago
parent 7174edf5cf
commit f74bbdd818

@ -142,7 +142,7 @@ public class GenCodeUtils {
Template tpl = Velocity.getTemplate(template, "UTF-8");
tpl.merge(context, sw);
try {
zip.finish();
// zip.finish();
zip.putNextEntry(new ZipEntry(getFileName(template, tableEntity.getClassName(), config.getString("package"), config.getString("moduleName"))));
IOUtils.write(sw.toString(), zip, "UTF-8");
IOUtils.closeQuietly(sw);

Loading…
Cancel
Save