From 67ad1fa2b4160680d74ae2aa4c6c983b4d1ad7ab Mon Sep 17 00:00:00 2001 From: bachhs Date: Sat, 28 Mar 2026 14:42:53 +0700 Subject: [PATCH] Adapt to Jackson 3 Kafka support See gh-49826 Signed-off-by: bachhs --- .../antora/modules/reference/pages/messaging/kafka.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/messaging/kafka.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/messaging/kafka.adoc index 5fc72a22660e..9b155f24cff1 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/messaging/kafka.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/messaging/kafka.adoc @@ -116,27 +116,27 @@ spring: This sets the common `prop.one` Kafka property to `first` (applies to producers, consumers, admins, and streams), the `prop.two` admin property to `second`, the `prop.three` consumer property to `third`, the `prop.four` producer property to `fourth` and the `prop.five` streams property to `fifth`. -You can also configure the Spring Kafka javadoc:org.springframework.kafka.support.serializer.JsonDeserializer[] as follows: +You can also configure the Spring Kafka javadoc:org.springframework.kafka.support.serializer.JacksonJsonDeserializer[] as follows: [configprops,yaml] ---- spring: kafka: consumer: - value-deserializer: "org.springframework.kafka.support.serializer.JsonDeserializer" + value-deserializer: "org.springframework.kafka.support.serializer.JacksonJsonDeserializer" properties: "[spring.json.value.default.type]": "com.example.Invoice" "[spring.json.trusted.packages]": "com.example.main,com.example.another" ---- -Similarly, you can disable the javadoc:org.springframework.kafka.support.serializer.JsonSerializer[] default behavior of sending type information in headers: +Similarly, you can disable the javadoc:org.springframework.kafka.support.serializer.JacksonJsonSerializer[] default behavior of sending type information in headers: [configprops,yaml] ---- spring: kafka: producer: - value-serializer: "org.springframework.kafka.support.serializer.JsonSerializer" + value-serializer: "org.springframework.kafka.support.serializer.JacksonJsonSerializer" properties: "[spring.json.add.type.headers]": false ----