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
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/messaging/kafka.adoc
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -78,12 +78,14 @@ The properties supported by auto configuration are shown in the <<application-pr
78
78
Note that, for the most part, these properties (hyphenated or camelCase) map directly to the Apache Kafka dotted properties.
79
79
See the Apache Kafka documentation for details.
80
80
81
-
The first few of these properties apply to all components (producers, consumers, admins, and streams) but can be specified at the component level if you wish to use different values.
81
+
Properties that don't include a client type (`producer`, `consumer`, `admin`, or `streams`) in their name are considered to be common and apply to all clients.
82
+
Most of these common properties can be overridden for one or more of the client types, if needed.
83
+
82
84
Apache Kafka designates properties with an importance of HIGH, MEDIUM, or LOW.
83
85
Spring Boot auto-configuration supports all HIGH importance properties, some selected MEDIUM and LOW properties, and any properties that do not have a default value.
84
86
85
87
Only a subset of the properties supported by Kafka are available directly through the `KafkaProperties` class.
86
-
If you wish to configure the producer or consumer with additional properties that are not directly supported, use the following properties:
88
+
If you wish to configure the individual client types with additional properties that are not directly supported, use the following properties:
@@ -105,7 +107,7 @@ If you wish to configure the producer or consumer with additional properties tha
105
107
"[prop.five]": "fifth"
106
108
----
107
109
108
-
This sets the common `prop.one` Kafka property to `first` (applies to producers, consumersand admins), the `prop.two` admin property to `second`, the `prop.three` consumer property to `third`, the `prop.four` producer property to `fourth` and the `prop.five` streams property to `fifth`.
110
+
This sets the common `prop.one` Kafka property to `first` (applies to producers, consumers, admins, and streams), the `prop.two` admin property to `second`, the `prop.three` consumer property to `third`, the `prop.four` producer property to `fourth` and the `prop.five` streams property to `fifth`.
109
111
110
112
You can also configure the Spring Kafka `JsonDeserializer` as follows:
0 commit comments