There is issue in this line, we have to exclude the current bean if has no annotation in methods or in class level, should be something like :
if (annotatedMethods.isEmpty() && ! hasClassLevelListeners) {
this.nonAnnotatedClasses.add(bean.getClass());
this.logger.trace(() -> "No @KafkaListener annotations found on bean type: " + bean.getClass());
}
|
if (annotatedMethods.isEmpty()) { |