Skip to content

Unable to create multiple listeners using same class with KafkaListener annotation at class level #2451

@bdbogjoe

Description

@bdbogjoe

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());
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions