spring-cloud / spring-cloud/spring-cloud-stream

Inclusion of spring-cloud-stream-binder-kafka.jar in classpath affects existing `@KafkaListener`s

Open
#3,149 3 comments 0 reactions 1 assignee View on GitHub

@olegz is already working on this.

Since Oct 9, 2025.

Backport 4.3.x bug
Dominant language
Java
Stars
1.1k
Forks
646
Avg merge
2d 3h
Merged PRs (30d)
8

Description

Describe the issue
Inclusion of spring-cloud-stream-binder-kafka.jar in classpath changes properties of spring.kafka that affects existing @KafkaListeners.

The jar registers KafkaBinderEnvironmentPostProcessor that adds property source kafkaBinderDefaultProperties that in turn changes default properties of spring-kafka.

Is it possible to make introduction of the framework more safe in terms of impact on existing functionality?

Version of the framework 2024.0.1
Expected behavior Inclusion of the framework should not affect other frameworks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.