Class ThymeleafProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties
@ConfigurationProperties(prefix="spring.thymeleaf") public class ThymeleafProperties extends Object
Properties for Thymeleaf.- Since:
- 1.2.0
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PREFIX
static String
DEFAULT_SUFFIX
Constructor Summary
Constructors Constructor Description ThymeleafProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Field Detail
DEFAULT_PREFIX
public static final String DEFAULT_PREFIX
- See Also:
- Constant Field Values
DEFAULT_SUFFIX
public static final String DEFAULT_SUFFIX
- See Also:
- Constant Field Values
Constructor Detail
ThymeleafProperties
public ThymeleafProperties()
Method Detail
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)