Spring Cloud Stream Kafka 仅将 headers 添加到一个绑定

Spring Cloud Stream Kafka add headers to only one binding

Spring Cloud Stream 的参考手册说您可以使用 属性 "spring.cloud.stream.kafka.binder.headers" 为所有绑定设置 headers。有没有办法为特定绑定设置 headers ?例如,像这样:

spring.cloud.stream:
  bindings:
    input:
      destination: input-topic
      headers: header-for-input-only
    output:
      destination: input-topic
      headers: header-for-output-only

不幸的是,它是活页夹范围的设置。更精细的设置可能是一项新功能。