diff --git a/src/com/haogames/core/util/FileKit.java b/src/com/haogames/core/util/FileKit.java index d810e3d..8307cef 100644 --- a/src/com/haogames/core/util/FileKit.java +++ b/src/com/haogames/core/util/FileKit.java @@ -1,7 +1,5 @@ package com.haogames.core.util; -import com.jfinal.kit.Kv; -import com.jfinal.template.Engine; import org.redkale.convert.json.JsonConvert; import java.io.*; @@ -162,30 +160,4 @@ public final class FileKit { return JsonConvert.root().convertFrom(typeToken, inputStream); } } - - /** - * 渲染模板到文件 - * - * @param sourceStr - * @param target - * @param kv - */ - public static void tplRender(String sourceStr, File target, Kv kv) { - String str = ""; - if (sourceStr != null && !sourceStr.isEmpty()) { - str = Engine.use().getTemplateByString(sourceStr).renderToString(kv); - } - strToFile(str, target, true); - } - - /** - * 通过模板创建内容 - * - * @param tplFile - * @param para - */ - public static void tplRender(File tplFile, File file, Map para) throws IOException { - String str = Engine.use().getTemplate(tplFile.getPath()).renderToString(para); - strToFile(str, file); - } } diff --git a/src/com/zdemo/Event.java b/src/com/zdemo/Event.java index 7484b75..af1f4d3 100644 --- a/src/com/zdemo/Event.java +++ b/src/com/zdemo/Event.java @@ -1,12 +1,31 @@ package com.zdemo; -import lombok.Getter; -import lombok.Setter; - -@Getter -@Setter public class Event { private String topic; private String key; private V value; + + public String getTopic() { + return topic; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public V getValue() { + return value; + } + + public void setValue(V value) { + this.value = value; + } }