Skip to content

Commit 6d05a03

Browse files
committed
Doc: Add anchor for annotation properties
https://stackoverflow.com/questions/54038928/how-to-pass-dynamic-topic-name-to-kafkalistenertopics-from-environment-variabl/54040969#54040969 Previously there was no break between discussing batch listeners and general annotation properties.
1 parent 7cd9f10 commit 6d05a03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/reference/asciidoc/kafka.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,10 +981,12 @@ public void pollResults(ConsumerRecords<?, ?> records) {
981981
IMPORTANT: If the container factory has a `RecordFilterStrategy` configured, it will be ignored for `ConsumerRecords<?, ?>` listeners, with a WARNing log emitted.
982982
Records can only be filtered with a batch listener if the `<List<?>>` form of listener is used.
983983

984-
Starting with _version 2.0_, the `id` attribute (if present) is used as the Kafka `group.id` property, overriding the configured property in the consumer factory, if present.
984+
====== Annotation Properties
985+
986+
Starting with _version 2.0_, the `id` property (if present) is used as the Kafka consumer `group.id` property, overriding the configured property in the consumer factory, if present.
985987
You can also set `groupId` explicitly, or set `idIsGroup` to false, to restore the previous behavior of using the consumer factory `group.id`.
986988

987-
You can use property placeholders or SpEL expressions within annotation properties, for example...
989+
You can use property placeholders or SpEL expressions within most annotation properties, for example...
988990

989991
[source, java]
990992
----

0 commit comments

Comments
 (0)