Skip to content

Commit 8950c3e

Browse files
committed
Polish
See gh-14271
1 parent 00233cd commit 8950c3e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class KafkaProperties {
5757

5858
/**
5959
* Comma-delimited list of host:port pairs to use for establishing the initial
60-
* connection to the Kafka cluster.
60+
* connections to the Kafka cluster. Applies to all components unless overridden.
6161
*/
6262
private List<String> bootstrapServers = new ArrayList<>(
6363
Collections.singletonList("localhost:9092"));
@@ -211,7 +211,7 @@ public static class Consumer {
211211

212212
/**
213213
* Comma-delimited list of host:port pairs to use for establishing the initial
214-
* connection to the Kafka cluster.
214+
* connections to the Kafka cluster. Overrides the global property, for consumers.
215215
*/
216216
private List<String> bootstrapServers;
217217

@@ -421,7 +421,7 @@ public static class Producer {
421421

422422
/**
423423
* Comma-delimited list of host:port pairs to use for establishing the initial
424-
* connection to the Kafka cluster.
424+
* connections to the Kafka cluster. Overrides the global property, for producers.
425425
*/
426426
private List<String> bootstrapServers;
427427

spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,11 +1000,11 @@ content into your application. Rather, pick only the properties that you need.
10001000
spring.kafka.admin.ssl.truststore-location= # Location of the trust store file.
10011001
spring.kafka.admin.ssl.truststore-password= # Store password for the trust store file.
10021002
spring.kafka.admin.ssl.truststore-type= # Type of the trust store.
1003-
spring.kafka.bootstrap-servers= # Comma-delimited list of host:port pairs to use for establishing the initial connection to the Kafka cluster.
1003+
spring.kafka.bootstrap-servers= # Comma-delimited list of host:port pairs to use for establishing the initial connections to the Kafka cluster. Applies to all components unless overridden.
10041004
spring.kafka.client-id= # ID to pass to the server when making requests. Used for server-side logging.
10051005
spring.kafka.consumer.auto-commit-interval= # Frequency with which the consumer offsets are auto-committed to Kafka if 'enable.auto.commit' is set to true.
10061006
spring.kafka.consumer.auto-offset-reset= # What to do when there is no initial offset in Kafka or if the current offset no longer exists on the server.
1007-
spring.kafka.consumer.bootstrap-servers= # Comma-delimited list of host:port pairs to use for establishing the initial connection to the Kafka cluster.
1007+
spring.kafka.consumer.bootstrap-servers= # Comma-delimited list of host:port pairs to use for establishing the initial connections to the Kafka cluster. Overrides the global property, for consumers.
10081008
spring.kafka.consumer.client-id= # ID to pass to the server when making requests. Used for server-side logging.
10091009
spring.kafka.consumer.enable-auto-commit= # Whether the consumer's offset is periodically committed in the background.
10101010
spring.kafka.consumer.fetch-max-wait= # Maximum amount of time the server blocks before answering the fetch request if there isn't sufficient data to immediately satisfy the requirement given by "fetch.min.bytes".
@@ -1040,7 +1040,7 @@ content into your application. Rather, pick only the properties that you need.
10401040
spring.kafka.listener.type=single # Listener type.
10411041
spring.kafka.producer.acks= # Number of acknowledgments the producer requires the leader to have received before considering a request complete.
10421042
spring.kafka.producer.batch-size= # Default batch size in bytes.
1043-
spring.kafka.producer.bootstrap-servers= # Comma-delimited list of host:port pairs to use for establishing the initial connection to the Kafka cluster.
1043+
spring.kafka.producer.bootstrap-servers= # Comma-delimited list of host:port pairs to use for establishing the initial connections to the Kafka cluster. Overrides the global property, for producers.
10441044
spring.kafka.producer.buffer-memory= # Total bytes of memory the producer can use to buffer records waiting to be sent to the server.
10451045
spring.kafka.producer.client-id= # ID to pass to the server when making requests. Used for server-side logging.
10461046
spring.kafka.producer.compression-type= # Compression type for all data generated by the producer.

0 commit comments

Comments
 (0)