GH-4189 : Modify Topic Assignment Docs of @KafkaListener#4204
Merged
sobychacko merged 2 commits intospring-projects:mainfrom Dec 11, 2025
Merged
GH-4189 : Modify Topic Assignment Docs of @KafkaListener#4204sobychacko merged 2 commits intospring-projects:mainfrom
sobychacko merged 2 commits intospring-projects:mainfrom
Conversation
3d62b5f to
b942c4b
Compare
Signed-off-by: moonyoungCHAE <xpf_fl@naver.com>
b942c4b to
7a43432
Compare
sobychacko
requested changes
Dec 9, 2025
| == Topic Partition Assignment | ||
|
|
||
| You can also configure POJO listeners with explicit topics and partitions (and, optionally, their initial offsets). | ||
| You can configure the topic for `@KafkaListener` in three ways. You must configure the topic in one of these ways. |
Contributor
There was a problem hiding this comment.
Only one sentence per line.
| ---- | ||
|
|
||
|
|
||
| You can simply configure the topic directly by name. In this case, you can also configure the multiple topics like `topics = {"myTopic1", myTopic2"}`. |
Contributor
There was a problem hiding this comment.
Only one sentence per line.
|
|
||
| You can also configure topics using topicPattern, which enables topic subscription based on a regular expression. | ||
|
|
||
| When you configure topics using either of these ways (topic or topic pattern), Kafka automatically assigns partitions according to the consumer group. Alternatively, you can configure POJO listeners with explicit topics and partitions (and, optionally, their initial offsets). |
Contributor
There was a problem hiding this comment.
Only one sentence per line.
Signed-off-by: moonyoungCHAE <xpf_fl@naver.com>
Contributor
Author
|
@sobychacko I changed it. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, the documentation only described manual topic partition assignment for @KafkaListener. I added information on how to configure it using by topics and topicPartitions. Thanks.
resolve: #4189