Class FreeMarkerProperties

java.lang.Object
org.springframework.boot.freemarker.autoconfigure.FreeMarkerProperties

@ConfigurationProperties("spring.freemarker") public class FreeMarkerProperties extends Object
@ConfigurationProperties for configuring FreeMarker.
Since:
4.0.0
Author:
Dave Syer, Andy Wilkinson
  • Field Details

  • Constructor Details

    • FreeMarkerProperties

      public FreeMarkerProperties()
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • isEnabled

      public boolean isEnabled()
    • setCheckTemplateLocation

      public void setCheckTemplateLocation(boolean checkTemplateLocation)
    • isCheckTemplateLocation

      public boolean isCheckTemplateLocation()
    • getViewNames

      public String[] getViewNames()
    • setViewNames

      public void setViewNames(String[] viewNames)
    • isCache

      public boolean isCache()
    • setCache

      public void setCache(boolean cache)
    • getContentType

      public MimeType getContentType()
    • setContentType

      public void setContentType(MimeType contentType)
    • getCharset

      public Charset getCharset()
    • getCharsetName

      public String getCharsetName()
    • setCharset

      public void setCharset(Charset charset)
    • getSettings

      public Map<String,String> getSettings()
    • setSettings

      public void setSettings(Map<String,String> settings)
    • getTemplateLoaderPath

      public String[] getTemplateLoaderPath()
    • setTemplateLoaderPath

      public void setTemplateLoaderPath(String... templateLoaderPaths)
    • isPreferFileSystemAccess

      public boolean isPreferFileSystemAccess()
    • setPreferFileSystemAccess

      public void setPreferFileSystemAccess(boolean preferFileSystemAccess)
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • getSuffix

      public String getSuffix()
    • setSuffix

      public void setSuffix(String suffix)
    • getRequestContextAttribute

      public String getRequestContextAttribute()
    • setRequestContextAttribute

      public void setRequestContextAttribute(String requestContextAttribute)
    • 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

      public void applyToMvcViewResolver(Object viewResolver)
      Apply the given properties to a AbstractTemplateViewResolver. 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.