public class TemplateParse extends Object
模板解析
| 限定符和类型 | 字段和说明 |
|---|---|
protected freemarker.template.Configuration |
configuration |
| 构造器和说明 |
|---|
TemplateParse() |
public void initConfiguration(TemplateConfig config) throws IOException
config - 配置内容IOException - io异常public String render(String ftlPath, Map<String,Object> data) throws IllegalAccessException, IOException, freemarker.template.TemplateException
IllegalAccessExceptionIOExceptionfreemarker.template.TemplateExceptionCopyright © 2018. All rights reserved.