Skip to content

Commit 56fa428

Browse files
authored
Correct DeadLetterPublishingRecoverer example to use KafkaOperations (#3911)
**Auto-cherry-pick to `3.3.x` & `3.2.x`** Signed-off-by: Seonghyeon Cho <[email protected]>
1 parent f83cb26 commit 56fa428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handling.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ Here is an example of configuring the publisher with `KafkaTemplate`+++s+++ that
702702
@Bean
703703
public DeadLetterPublishingRecoverer publisher(KafkaTemplate<?, ?> stringTemplate,
704704
KafkaTemplate<?, ?> bytesTemplate) {
705-
Map<Class<?>, KafkaTemplate<?, ?>> templates = new LinkedHashMap<>();
705+
Map<Class<?>, KafkaOperations<?, ?>> templates = new LinkedHashMap<>();
706706
templates.put(String.class, stringTemplate);
707707
templates.put(byte[].class, bytesTemplate);
708708
return new DeadLetterPublishingRecoverer(templates);

0 commit comments

Comments
 (0)