Skip to content

Commit f395cce

Browse files
Addressing PR review
Signed-off-by: chickenchickenlove <[email protected]>
1 parent c322d68 commit f395cce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/receiving-messages/class-level-kafkalistener.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
= `@KafkaListener` on a Class
33

44
When you use `@KafkaListener` at the class-level, you must specify `@KafkaHandler` at the method level.
5-
If you do not use `@KafkaHandler`, no method will be used as a listener.
6-
7-
IMPORTANT: This is because a class annotated at the class-level may be extended or inherited in various ways.
5+
If no `@KafkaHandler` on any methods of this class or its sub-classes, the framework will reject such a configuration.
6+
The `@KafkaHandler` annotation is required for explicit and concise purpose of the method.
7+
Otherwise it is hard to make a decision about this or other method without extra restrictions.
88

99
When messages are delivered, the converted message payload type is used to determine which method to call.
1010
The following example shows how to do so:

0 commit comments

Comments
 (0)