public class FreeMarkers extends Object
| 构造器和说明 |
|---|
FreeMarkers() |
| 限定符和类型 | 方法和说明 |
|---|---|
static freemarker.template.Configuration |
buildConfiguration(String directory) |
static void |
main(String[] args) |
static String |
renderString(String templateString,
Map<String,?> model) |
static String |
renderTemplate(freemarker.template.Template template,
Object model) |
public static String renderString(String templateString, Map<String,?> model) throws Exception
Exceptionpublic static String renderTemplate(freemarker.template.Template template, Object model) throws Exception
Exceptionpublic static freemarker.template.Configuration buildConfiguration(String directory) throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2022. All rights reserved.