public class FreemarkerTemplateImpl extends Object implements TemplateEngine
| Constructor and Description |
|---|
FreemarkerTemplateImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Configuration config)
初始化模版引擎配置
|
void |
writer(String templatePath,
String outputPath,
Map<String,Object> data)
使用模版生成文件
|
void |
writer(String templatePath,
Writer output,
Map<String,Object> data)
使用模版生成文件
|
public void init(Configuration config)
TemplateEngineinit in interface TemplateEngineconfig - 配置信息public void writer(String templatePath, String outputPath, Map<String,Object> data)
TemplateEnginewriter in interface TemplateEnginetemplatePath - 模版路径outputPath - 生成文件保存目录data - 模版配置数据public void writer(String templatePath, Writer output, Map<String,Object> data)
TemplateEnginewriter in interface TemplateEnginetemplatePath - 模版路径output - 生成文件保存流data - 模版配置数据Copyright © 2018–2020. All rights reserved.