close

Filter

loading table of contents...

Release Notes / Version 13.2512.0

Table Of Contents

Replaced FreeMarker XML Spring Configuration with FreeMarker Spring Boot AutoConfiguration

CoreMedia’s XML Spring configuration for the FreeMarker integration has been replaced with Spring Boot’s @AutoConfiguration for FreeMarker.

The CAE now uses the org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration to configure the FreeMarker integration. With this change, the integration now uses the standard configurations and extension points that are provided by Spring Boot and FreeMarker. Please check the following breaking changes and apply your project’s configurations and customizations!

FreeMarker Settings

The FreeMarker settings have been changed to configuration properties. The freemarker. configurations have to be changed to spring.freemarker.settings. properties.

Additionally, the formerly non-standard setting freemarker.template.update.delay.in.seconds has been standardized to spring.freemarker.settings.template_update_delay.

Fo further information see Spring Boot Templating Properties and FreeMarker Settings.

Auto Imports

Custom auto imports are not configured with @Customize("freemarkerConfigurer.autoImports") or <customize:append bean="freemarkerConfigurer" property="autoImports"/> anymore. They are now added to the spring.freemarker.settings.auto_import property in the application.properties files for the CAE’s, using the pattern [templatePath] as [namespaceVarName]. See also FreeMarker API: Configurable.

Shared Variables

Custom shared variables are not configured with @Customize("freemarkerSharedVariables") or <customize:append bean="freemarkerSharedVariables"/> anymore. They are now configured using FreeMarkerVariablesCustomizer beans:

@Bean
FreeMarkerVariablesCustomizer myFreemarkerSharedVariablesCustomizer() {
  return variables -> variables.put("myFreemarkerFacade", new MyFreemarkerFacade());
}

Replaced XML configurations

Several Spring XML configuration files have been removed:

  • apps/cae/modules/cae/cae-base-lib/src/main/resources/framework/spring/blueprint-freemarker-views.xml

  • apps/cae/modules/extensions/es/es-cae/src/main/resources/META-INF/coremedia/es-cae-views.xml

  • apps/cae/modules/extensions/lc/lc-cae/src/main/resources/META-INF/coremedia/livecontext-freemarker-views.xml

  • apps/cae/modules/extensions/lc/lc-cae/src/main/resources/META-INF/coremedia/livecontext-views.xml

  • cae-viewservices.jar!com/coremedia/cae/view-freemarker-services.xml

  • coremedia-common.jar!com/coremedia/image/image-service.xml

Their former configurations are covered by the FreeMarkerAutoConfiguration or have been migrated to Java configurations.

(CMS-27279)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.