Skip to content

Commit 6ba0989

Browse files
refactor docs (#4188)
Signed-off-by: moonyoungCHAE <[email protected]>
1 parent e54b5a0 commit 6ba0989

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/receiving-messages/listener-annotation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The following example shows how to use the headers:
209209

210210
[source, java]
211211
----
212-
@KafkaListener(id = "qux", topicPattern = "myTopic1")
212+
@KafkaListener(id = "qux", topics = "myTopic1")
213213
public void listen(@Payload String foo,
214214
@Header(name = KafkaHeaders.RECEIVED_KEY, required = false) Integer key,
215215
@Header(KafkaHeaders.RECEIVED_PARTITION) int partition,

spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/receiving-messages/listener-group-id.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Alternatively, you can access the group id in a method parameter.
99

1010
[source, java]
1111
----
12-
@KafkaListener(id = "id", topicPattern = "someTopic")
12+
@KafkaListener(id = "id", topics = "someTopic")
1313
public void listener(@Payload String payload, @Header(KafkaHeaders.GROUP_ID) String groupId) {
1414
...
1515
}

0 commit comments

Comments
 (0)