Closed
Description
After upgrading from Spring Cloud 2021 to 2024, I faced the issue with spring.cloud.stream.output-bindings
property.
Configuration:
spring:
cloud:
stream:
output-bindings: demo-test
bindings:
demo-test-out-0:
destination: demo_topics
content-type: application/json
producer:
header-mode: none
binder: kafka
With SC 2021 topic demo_topics
was created and used.
With SC 2024 (and 2023) demo_topics
was not used, and topic with name demo-test
was created.
I prepared a demo to reproduce the issue.
Configuration: application-test.yml.
Function test: TopicsInUse.
SC 2021 branch: cloud2021 pom.xml
SC 2024 branch: cloud2024 pom.xml