Skip to content

Commit 392ee4b

Browse files
sh-chospring-builds
authored andcommitted
Correct DeadLetterPublishingRecoverer example to use KafkaOperations (#3911)
Signed-off-by: Seonghyeon Cho <[email protected]> (cherry picked from commit 56fa428)
1 parent 60ab91f commit 392ee4b

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
@@ -694,7 +694,7 @@ Here is an example of configuring the publisher with `KafkaTemplate`+++s+++ that
694694
@Bean
695695
public DeadLetterPublishingRecoverer publisher(KafkaTemplate<?, ?> stringTemplate,
696696
KafkaTemplate<?, ?> bytesTemplate) {
697-
Map<Class<?>, KafkaTemplate<?, ?>> templates = new LinkedHashMap<>();
697+
Map<Class<?>, KafkaOperations<?, ?>> templates = new LinkedHashMap<>();
698698
templates.put(String.class, stringTemplate);
699699
templates.put(byte[].class, bytesTemplate);
700700
return new DeadLetterPublishingRecoverer(templates);

0 commit comments

Comments
 (0)