close

Filter

loading table of contents...

CoreMedia Content Cloud v12 Upgrade Guide / Version 2404

Table Of Contents

7.2.1 Removal of conversionService Bean

The Unified API Spring Boot integration configured a bean conversionService of type org.springframework.core.convert.support.DefaultConversionService so that it was capable of converting strings to ContentType instances. This feature was previously used for the Blueprint Spring configuration classes InterceptorsStudioAutoConfiguration, LcStudioLibComponentAutoConfiguration, and InferrersStudioConfiguration). The default conversion service bean has been removed, and the configuration classes have been adjusted to use explicit content type retrieval. Instead of

    @Value("CMLinkable") ContentType contentType
  

the following code can be used to achieve the content type lookup

    @Value("#{@contentRepository.getContentType('CMLinkable')}") ContentType contentType
  

See https://docs.spring.io/spring-framework/reference/core/validation/convert.html#core-convert-Spring-config for further information on Spring type conversion.

This bean was removed from the Unified API Spring integration along with the capability to convert strings to content types automatically.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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