public class FreemarkerTemplateProcessor extends AbstractTemplateProcessor
globalModel| 构造器和说明 |
|---|
FreemarkerTemplateProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
freemarker.template.Configuration |
getConfiguration() |
org.springframework.ui.freemarker.FreeMarkerConfigurationFactory |
getFreeMarkerConfigurationFactory() |
void |
init() |
String |
process(String template,
Object model)
处理模板
|
void |
setConfiguration(freemarker.template.Configuration configuration) |
void |
setFreeMarkerConfigurationFactory(org.springframework.ui.freemarker.FreeMarkerConfigurationFactory freeMarkerConfigurationFactory) |
setGlobalModel@PostConstruct public void init() throws Exception
Exceptionpublic String process(String template, Object model) throws ParseTemplateException
TemplateProcessortemplate - 模板model - 数据ParseTemplateExceptionpublic org.springframework.ui.freemarker.FreeMarkerConfigurationFactory getFreeMarkerConfigurationFactory()
public void setFreeMarkerConfigurationFactory(org.springframework.ui.freemarker.FreeMarkerConfigurationFactory freeMarkerConfigurationFactory)
public freemarker.template.Configuration getConfiguration()
public void setConfiguration(freemarker.template.Configuration configuration)
Copyright © 2017. All rights reserved.