首页 > 解决方案 > producer.headerMode default value

问题描述

probably anyone know which value is default for spring.cloud.stream.bindings.<bindingName>.producer.header-mode in spring-cloud-stream-kafka-binder?

The problem is because in spring-cloud stream documentation we have

Default: Depends on the binder implementation.

标签: spring-cloud-streamspring-cloud-stream-binder-kafka

解决方案


Default is headers for the Apache Kafka binder.

In general, you can assume that for middleware that supports headers natively (e.g. Kafka since 0.11.0.0), the default will be headers; for middleware that has no support for headers, it will be embeddedHeaders or none depending on what the developer chose.


推荐阅读