Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
rogervinas committed Jul 17, 2024
1 parent b0d3499 commit a4e2c0e
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ class MyConfiguration {
@Bean("my-producer")
fun myStreamEventProducerFunction(producer: MyStreamEventProducer): () -> Flux<Message<MyEventPayload>> = 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)
}

0 comments on commit a4e2c0e

Please sign in to comment.