类 FreemarkerUtils

java.lang.Object
com.cdkjframework.util.files.freemarker.FreemarkerUtils

@Component public class FreemarkerUtils extends Object
  • 构造器详细资料

    • FreemarkerUtils

      public FreemarkerUtils(CustomConfig customConfig)
      构建函数
      参数:
      customConfig -
  • 方法详细资料

    • getInstance

      public static FreemarkerUtils getInstance(CustomConfig customConfig)
      获取实例
      返回:
      返回实例
    • analyticalTemplate

      public String analyticalTemplate(String template, GenerateEntity entity) throws IOException, freemarker.template.TemplateException
      解析模板
      参数:
      template - 模板名称
      entity - 数据
      返回:
      抛出:
      IOException
      freemarker.template.TemplateException
    • analyticalTemplateString

      public String analyticalTemplateString(String template, GenerateEntity entity) throws IOException, freemarker.template.TemplateException
      解析模板
      参数:
      template - 模板名称
      entity - 数据
      template - 路径
      返回:
      抛出:
      IOException
      freemarker.template.TemplateException