From 050de0027ac8246e202153b9f14bb3e6901f1056 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) Signed-off-by: Seonghyeon Cho (cherry picked from commit 56fa428e8091b7b665ea501b9991dfda89e45209) --- .../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 5ecb73dc..e3bea260 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 @@ -673,7 +673,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);