类 ThymeleafProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties
@ConfigurationProperties(prefix="spring.thymeleaf") public class ThymeleafProperties extends Object
Properties for Thymeleaf.- 从以下版本开始:
- 1.2.0
字段概要
字段 修饰符和类型 字段 说明 static String
DEFAULT_PREFIX
static String
DEFAULT_SUFFIX
构造器概要
构造器 构造器 说明 ThymeleafProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.util.MimeType
getContentType()
Charset
getEncoding()
String[]
getExcludedViewNames()
String
getMode()
String
getPrefix()
String
getSuffix()
Integer
getTemplateResolverOrder()
String[]
getViewNames()
boolean
isCache()
boolean
isCheckTemplate()
boolean
isCheckTemplateLocation()
boolean
isEnabled()
void
setCache(boolean cache)
void
setCheckTemplate(boolean checkTemplate)
void
setCheckTemplateLocation(boolean checkTemplateLocation)
void
setContentType(org.springframework.util.MimeType contentType)
void
setEnabled(boolean enabled)
void
setEncoding(Charset encoding)
void
setExcludedViewNames(String[] excludedViewNames)
void
setMode(String mode)
void
setPrefix(String prefix)
void
setSuffix(String suffix)
void
setTemplateResolverOrder(Integer templateResolverOrder)
void
setViewNames(String[] viewNames)
字段详细资料
DEFAULT_PREFIX
public static final String DEFAULT_PREFIX
- 另请参阅:
- 常量字段值
DEFAULT_SUFFIX
public static final String DEFAULT_SUFFIX
- 另请参阅:
- 常量字段值
构造器详细资料
ThymeleafProperties
public ThymeleafProperties()
方法详细资料
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
isCheckTemplate
public boolean isCheckTemplate()
setCheckTemplate
public void setCheckTemplate(boolean checkTemplate)
isCheckTemplateLocation
public boolean isCheckTemplateLocation()
setCheckTemplateLocation
public void setCheckTemplateLocation(boolean checkTemplateLocation)
getEncoding
public Charset getEncoding()
setEncoding
public void setEncoding(Charset encoding)
getContentType
public org.springframework.util.MimeType getContentType()
setContentType
public void setContentType(org.springframework.util.MimeType contentType)
isCache
public boolean isCache()
setCache
public void setCache(boolean cache)
getTemplateResolverOrder
public Integer getTemplateResolverOrder()
setTemplateResolverOrder
public void setTemplateResolverOrder(Integer templateResolverOrder)
getExcludedViewNames
public String[] getExcludedViewNames()
setExcludedViewNames
public void setExcludedViewNames(String[] excludedViewNames)
getViewNames
public String[] getViewNames()
setViewNames
public void setViewNames(String[] viewNames)