You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using Spring Boot, it will auto configure this converter bean into the auto-configured `KafkaTemplate`; otherwise you should add this converter to the template.
181
181
182
+
[[multi-value-header]]
183
+
== Support multi-value header
184
+
185
+
Spring for Apache Kafka 4.0 supports multi-value header.
186
+
To use multi-value header, the patterns for multi-value should be configured to `HeaderMapper`.
187
+
If no patterns are configured to `HeaderMapper`, iterable header values under same header name will be handled like single value.
188
+
189
+
If there are use cases in which multi-value headers are required, use this:
190
+
191
+
[source, java]
192
+
----
193
+
@Bean
194
+
public void KafkaListenerContainerFactory<Integer, String> containerFactory() {
Copy file name to clipboardExpand all lines: spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,3 +70,9 @@ Several deprecated items have been removed:
70
70
71
71
Spring for Apache Kafka 4.0 supports Kafka 4.0’s new consumer rebalance protocol - https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol[KIP-848].
72
72
For details, see xref:kafka/receiving-messages/rebalance-listeners.adoc#new-rebalalcne-protocol[New Consumer Rebalace Protocol docs].
73
+
74
+
[[x40-multi-value-header]]
75
+
=== Support multi-value header
76
+
77
+
Spring for Apache Kafka 4.0 supports multi-value header for Kafka Record.
78
+
For details, see xref:kafka/headers.adoc#multi-value-header[Support multi-value header].
0 commit comments