diff --git a/src/main/kotlin/com/rogervinas/stream/functional/MyConfiguration.kt b/src/main/kotlin/com/rogervinas/stream/functional/MyConfiguration.kt index 721a112..71f7d38 100644 --- a/src/main/kotlin/com/rogervinas/stream/functional/MyConfiguration.kt +++ b/src/main/kotlin/com/rogervinas/stream/functional/MyConfiguration.kt @@ -32,11 +32,8 @@ class MyConfiguration { @Bean("my-producer") fun myStreamEventProducerFunction(producer: MyStreamEventProducer): () -> Flux> = producer - @Bean - @Primary - fun jacksonMapper(objectMapper: ObjectMapper): JacksonMapper { - // Workaround for https://github.com/spring-cloud/spring-cloud-function/issues/1158 - // Introduced in spring-cloud-function 4.1.3 via spring-cloud-dependencies 2023.0.3 - return JacksonMapper(objectMapper) - } + // Workaround for https://github.com/spring-cloud/spring-cloud-function/issues/1158 + // Introduced in spring-cloud-function 4.1.3 via spring-cloud-dependencies 2023.0.3 + @Bean @Primary + fun jacksonMapper(objectMapper: ObjectMapper) = JacksonMapper(objectMapper) }