public class TemplateUtil extends Object
Constructor and Description |
---|
TemplateUtil() |
Modifier and Type | Method and Description |
---|---|
static TemplateEngine |
getEngine()
获取单例的模板引擎
|
static String |
render(String templateContent,
Map<?,?> bindingMap)
融合模板和参数,返回融合后的内容
|
static void |
render(String templateContent,
Map<?,?> bindingMap,
Writer writer)
融合模板和参数,返回融合后的内容
|
public static TemplateEngine getEngine()
TemplateEngine
public static String render(String templateContent, Map<?,?> bindingMap)
templateContent
- 模板内容bindingMap
- 参数Copyright © 2025. All rights reserved.