public class TemplateUtil extends Object
| 构造器和说明 |
|---|
TemplateUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
generateFromFile(Map<String,Object> root,
String sourcePath,
String ftlName,
String targetPath,
String targetName)
从文件获取ftl模板导出文件
|
static void |
generateFromResources(Map<String,Object> root,
String dictName,
String ftlName,
String targetPath,
String targetName)
从resources下获取ftl模板导出文件
|
public static void generateFromResources(Map<String,Object> root, String dictName, String ftlName, String targetPath, String targetName) throws IOException, freemarker.template.TemplateException
root - dictName - ftlName - targetPath - targetName - IOExceptionfreemarker.template.TemplateExceptionpublic static void generateFromFile(Map<String,Object> root, String sourcePath, String ftlName, String targetPath, String targetName) throws IOException, freemarker.template.TemplateException
root - sourcePath - ftlName - targetPath - targetName - IOExceptionfreemarker.template.TemplateExceptionCopyright © 2021. All rights reserved.