类 VelocityTemplateEngine


  • public class VelocityTemplateEngine
    extends AbstractTemplateEngine
    Velocity 模板引擎实现文件输出
    从以下版本开始:
    2018-01-10
    作者:
    hubin
    • 构造器详细资料

      • VelocityTemplateEngine

        public VelocityTemplateEngine()
    • 方法详细资料

      • writer

        public void writer​(@NotNull
                           @NotNull java.util.Map<java.lang.String,​java.lang.Object> objectMap,
                           @NotNull
                           @NotNull java.lang.String templatePath,
                           @NotNull
                           @NotNull java.io.File outputFile)
                    throws java.lang.Exception
        从类复制的说明: AbstractTemplateEngine
        将模板转化成为文件
        覆盖:
        writer 在类中 AbstractTemplateEngine
        参数:
        objectMap - 渲染对象 MAP 信息
        templatePath - 模板文件
        outputFile - 文件生成的目录
        抛出:
        java.lang.Exception - 异常
      • templateFilePath

        @NotNull
        public @NotNull java.lang.String templateFilePath​(@NotNull
                                                          @NotNull java.lang.String filePath)
        从类复制的说明: AbstractTemplateEngine
        模板真实文件路径
        指定者:
        templateFilePath 在类中 AbstractTemplateEngine
        参数:
        filePath - 文件路径
        返回:
        ignore