public class FreemarkerUtil extends Object
| 构造器和说明 |
|---|
FreemarkerUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fprint(Map<String,Object> dataModel,
String templateName,
String filePath)
输出文件
|
static FreemarkerUtil |
getInstance(String freemarkerVersionNo,
String templatePath)
获取实例
|
void |
print(Map<String,Object> dataModel,
String templateName)
打印到控制台(测试用)
|
void |
writer(Map<String,Object> dataModel,
String templateName,
Writer writer) |
public static FreemarkerUtil getInstance(String freemarkerVersionNo, String templatePath)
freemarkerVersionNo - templatePath - public void print(Map<String,Object> dataModel, String templateName)
dataModel - templateName - public void fprint(Map<String,Object> dataModel, String templateName, String filePath)
dataModel - 数据模型templateName - 输出模版filePath - 输出文件路径Copyright © 2020. All rights reserved.