Class FreemarkerDefaultConfigurationFactory

  • All Implemented Interfaces:
    FreemarkerConfigurationFactory

    public class FreemarkerDefaultConfigurationFactory
    extends Object
    implements FreemarkerConfigurationFactory
    Handy FreemarkerConfigurationFactory that supplies a minimally configured Configuration able to create Freemarker templates. The recommended method to provide custom Freemarker configuration is to sub-class this class, further customize the configuration as desired in that class, and then register the sub-class with the FreemarkerMvcFeature TEMPLATE_OBJECT_FACTORY property.
    Author:
    Jeff Wilde (jeff.wilde at complicatedrobot.com)
    • Field Detail

      • configuration

        protected final freemarker.template.Configuration configuration
    • Constructor Detail

      • FreemarkerDefaultConfigurationFactory

        public FreemarkerDefaultConfigurationFactory​(jakarta.servlet.ServletContext servletContext)