public class TemplateUtil extends Object
| Constructor and Description |
|---|
TemplateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static TemplateEngine |
createEngine()
根据用户引入的模板引擎jar,自动创建对应的模板引擎对象,使用默认配置
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎 |
static TemplateEngine |
createEngine(TemplateConfig config)
根据用户引入的模板引擎jar,自动创建对应的模板引擎对象
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎 |
public static TemplateEngine createEngine()
TemplateEnginepublic static TemplateEngine createEngine(TemplateConfig config)
config - 模板配置,包括编码、模板文件path等信息TemplateEngineCopyright © 2025. All rights reserved.