From 62d212a9e91eb7db6f5a3832ede9b50686a1d308 Mon Sep 17 00:00:00 2001 From: Parker Date: Sun, 3 Jan 2021 23:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/opsli/core/creater/strategy/create/CodeBuilder.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/create/CodeBuilder.java b/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/create/CodeBuilder.java index 78ed7e5..331ec6e 100644 --- a/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/create/CodeBuilder.java +++ b/opsli-modulars/opsli-modulars-creater/src/main/java/org/opsli/core/creater/strategy/create/CodeBuilder.java @@ -18,6 +18,7 @@ package org.opsli.core.creater.strategy.create; import cn.hutool.core.date.DateUtil; import cn.hutool.core.io.IoUtil; import com.jfinal.kit.Kv; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.ToStringBuilder; import org.opsli.api.ApiFlag; @@ -50,6 +51,7 @@ import java.util.Map; * @CreateTime: 2020-11-20 17:30 * @Description: Java代码构建器 */ +@Slf4j public enum CodeBuilder { /** 实例对象 */ @@ -140,7 +142,9 @@ public enum CodeBuilder { // 输出流文件 IoUtil.write(out,true, baos.toByteArray()); } - }catch (Exception ignored){} + }catch (Exception e){ + log.error(e.getMessage(), e); + } }