public class FreeMarkerUtil extends Object
| Constructor and Description |
|---|
FreeMarkerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createFile(String ftlName,
String ftlTemplatePath,
Map<String,Object> rootMap,
String outFile) |
static freemarker.template.Template |
getTemplate(String name,
File ftlTemplatePath) |
static void |
main(String[] args) |
static void |
print(String name,
String ftlTemplatePath,
Map<String,Object> rootMap) |
public static freemarker.template.Template getTemplate(String name, File ftlTemplatePath) throws IOException
IOExceptionpublic static void print(String name, String ftlTemplatePath, Map<String,Object> rootMap) throws freemarker.template.TemplateException, IOException
freemarker.template.TemplateExceptionIOExceptionpublic static void createFile(String ftlName, String ftlTemplatePath, Map<String,Object> rootMap, String outFile) throws freemarker.template.TemplateException, IOException
freemarker.template.TemplateExceptionIOExceptionpublic static void main(String[] args)
Copyright © 2016 jufeng. All rights reserved.