The reference manual for Spring Cloud Stream says that you can use the property "spring.cloud.stream.kafka.binder.headers" to set the headers for all bindings. Is there a way to set the headers for a specific binding? For example, something like this:
spring.cloud.stream:
bindings:
input:
destination: input-topic
headers: header-for-input-only
output:
destination: input-topic
headers: header-for-output-only
Unfortunately not, it's a binder-wide setting. More granular settings could be a new feature.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments