Release Notes / Version 12.2401
Table Of Contents
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.
(CMS-22810)