Skip to content

Commit c3f44f1

Browse files
Update spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java
Co-authored-by: Artem Bilan <[email protected]> Signed-off-by: ChickenchickenLove <[email protected]>
1 parent cc8a42f commit c3f44f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public Object postProcessAfterInitialization(final Object bean, final String bea
418418

419419
if (!hasMethodLevelListeners && hasClassLevelListeners &&
420420
!hasMethodLevelKafkaHandlerAnnotation) {
421-
throw new IllegalStateException("No kafka listener methods found on bean type.");
421+
throw new IllegalStateException("No Kafka listener methods in bean: " + bean);
422422
}
423423
}
424424
}

0 commit comments

Comments
 (0)