From 392ee4bfdb97bf36d64b1d45ba88ff86c0aed24b 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 c6feb793..398a1058 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 @@ -694,7 +694,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);