类 FreeMarkerProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
- org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties
- org.springframework.boot.autoconfigure.freemarker.FreeMarkerProperties
@ConfigurationProperties(prefix="spring.freemarker") public class FreeMarkerProperties extends AbstractTemplateViewResolverProperties
ConfigurationProperties
for configuring FreeMarker.- 从以下版本开始:
- 1.1.0
字段概要
字段 修饰符和类型 字段 说明 static String
DEFAULT_PREFIX
static String
DEFAULT_SUFFIX
static String
DEFAULT_TEMPLATE_LOADER_PATH
构造器概要
构造器 构造器 说明 FreeMarkerProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,String>
getSettings()
String[]
getTemplateLoaderPath()
boolean
isPreferFileSystemAccess()
void
setPreferFileSystemAccess(boolean preferFileSystemAccess)
void
setSettings(Map<String,String> settings)
void
setTemplateLoaderPath(String... templateLoaderPaths)
从类继承的方法 org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties
applyToMvcViewResolver, getPrefix, getRequestContextAttribute, getSuffix, isAllowRequestOverride, isAllowSessionOverride, isExposeRequestAttributes, isExposeSessionAttributes, isExposeSpringMacroHelpers, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers, setPrefix, setRequestContextAttribute, setSuffix
从类继承的方法 org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
getCharset, getCharsetName, getContentType, getViewNames, isCache, isCheckTemplateLocation, isEnabled, setCache, setCharset, setCheckTemplateLocation, setContentType, setEnabled, setViewNames
字段详细资料
DEFAULT_TEMPLATE_LOADER_PATH
public static final String DEFAULT_TEMPLATE_LOADER_PATH
- 另请参阅:
- 常量字段值
DEFAULT_PREFIX
public static final String DEFAULT_PREFIX
- 另请参阅:
- 常量字段值
DEFAULT_SUFFIX
public static final String DEFAULT_SUFFIX
- 另请参阅:
- 常量字段值
构造器详细资料
FreeMarkerProperties
public FreeMarkerProperties()
方法详细资料
getSettings
public Map<String,String> getSettings()
setSettings
public void setSettings(Map<String,String> settings)
getTemplateLoaderPath
public String[] getTemplateLoaderPath()
isPreferFileSystemAccess
public boolean isPreferFileSystemAccess()
setPreferFileSystemAccess
public void setPreferFileSystemAccess(boolean preferFileSystemAccess)
setTemplateLoaderPath
public void setTemplateLoaderPath(String... templateLoaderPaths)