From 56fa428e8091b7b665ea501b9991dfda89e45209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Seonghyeon=20Cho=20=28=EC=A1=B0=EC=84=B1=ED=98=84=29?= Date: Tue, 20 May 2025 00:57:17 +0900 Subject: [PATCH] Correct `DeadLetterPublishingRecoverer` example to use `KafkaOperations` (#3911) **Auto-cherry-pick to `3.3.x` & `3.2.x`** Signed-off-by: Seonghyeon Cho --- .../modules/ROOT/pages/kafka/annotation-error-handling.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handling.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handling.adoc index f452c6d0..468dd471 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handling.adoc +++ b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handling.adoc @@ -702,7 +702,7 @@ Here is an example of configuring the publisher with `KafkaTemplate`+++s+++ that @Bean public DeadLetterPublishingRecoverer publisher(KafkaTemplate stringTemplate, KafkaTemplate bytesTemplate) { - Map, KafkaTemplate> templates = new LinkedHashMap<>(); + Map, KafkaOperations> templates = new LinkedHashMap<>(); templates.put(String.class, stringTemplate); templates.put(byte[].class, bytesTemplate); return new DeadLetterPublishingRecoverer(templates);