Class FreeMarkerProperties
java.lang.Object
org.springframework.boot.freemarker.autoconfigure.FreeMarkerProperties
@ConfigurationProperties for configuring FreeMarker.- Since:
- 4.0.0
- Author:
- Dave Syer, Andy Wilkinson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToMvcViewResolver(Object viewResolver) Apply the given properties to aAbstractTemplateViewResolver.@Nullable String@Nullable StringString[]String @Nullable []booleanbooleanbooleanisCache()booleanbooleanbooleanbooleanbooleanvoidsetAllowRequestOverride(boolean allowRequestOverride) voidsetAllowSessionOverride(boolean allowSessionOverride) voidsetCache(boolean cache) voidsetCharset(Charset charset) voidsetCheckTemplateLocation(boolean checkTemplateLocation) voidsetContentType(MimeType contentType) voidsetExposeRequestAttributes(boolean exposeRequestAttributes) voidsetExposeSessionAttributes(boolean exposeSessionAttributes) voidsetExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) voidsetPreferFileSystemAccess(boolean preferFileSystemAccess) voidvoidsetRequestContextAttribute(@Nullable String requestContextAttribute) voidsetSettings(Map<String, String> settings) voidvoidsetTemplateLoaderPath(String... templateLoaderPaths) voidsetViewNames(String @Nullable [] viewNames)
-
Field Details
-
DEFAULT_TEMPLATE_LOADER_PATH
- See Also:
-
DEFAULT_PREFIX
- See Also:
-
DEFAULT_SUFFIX
- See Also:
-
-
Constructor Details
-
FreeMarkerProperties
public FreeMarkerProperties()
-
-
Method Details
-
setCheckTemplateLocation
public void setCheckTemplateLocation(boolean checkTemplateLocation) -
isCheckTemplateLocation
public boolean isCheckTemplateLocation() -
getViewNames
-
setViewNames
-
isCache
public boolean isCache() -
setCache
public void setCache(boolean cache) -
getContentType
-
setContentType
-
getCharset
-
getCharsetName
-
setCharset
-
getSettings
-
setSettings
-
getTemplateLoaderPath
-
setTemplateLoaderPath
-
isPreferFileSystemAccess
public boolean isPreferFileSystemAccess() -
setPreferFileSystemAccess
public void setPreferFileSystemAccess(boolean preferFileSystemAccess) -
getPrefix
-
setPrefix
-
getSuffix
-
setSuffix
-
getRequestContextAttribute
-
setRequestContextAttribute
-
isExposeRequestAttributes
public boolean isExposeRequestAttributes() -
setExposeRequestAttributes
public void setExposeRequestAttributes(boolean exposeRequestAttributes) -
isExposeSessionAttributes
public boolean isExposeSessionAttributes() -
setExposeSessionAttributes
public void setExposeSessionAttributes(boolean exposeSessionAttributes) -
isAllowRequestOverride
public boolean isAllowRequestOverride() -
setAllowRequestOverride
public void setAllowRequestOverride(boolean allowRequestOverride) -
isAllowSessionOverride
public boolean isAllowSessionOverride() -
setAllowSessionOverride
public void setAllowSessionOverride(boolean allowSessionOverride) -
isExposeSpringMacroHelpers
public boolean isExposeSpringMacroHelpers() -
setExposeSpringMacroHelpers
public void setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) -
applyToMvcViewResolver
Apply the given properties to aAbstractTemplateViewResolver. Use Object in signature to avoid runtime dependency on MVC, which means that the template engine can be used in a non-web application.- Parameters:
viewResolver- the resolver to apply the properties to.
-