Package | Description |
---|---|
cn.hutool.extra.template |
第三方模板引擎封装,提供统一的接口用于适配第三方模板引擎
|
Modifier and Type | Method and Description |
---|---|
TemplateConfig.ResourceMode |
TemplateConfig.getResourceMode()
获取模板资源加载方式
|
static TemplateConfig.ResourceMode |
TemplateConfig.ResourceMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemplateConfig.ResourceMode[] |
TemplateConfig.ResourceMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
TemplateConfig.setResourceMode(TemplateConfig.ResourceMode resourceMode)
设置模板资源加载方式
|
Constructor and Description |
---|
TemplateConfig(Charset charset,
String path,
TemplateConfig.ResourceMode resourceMode)
构造
|
TemplateConfig(String path,
TemplateConfig.ResourceMode resourceMode)
构造,默认UTF-8编码
|
Copyright © 2024. All rights reserved.