Spring 云流配置选项

Spring Cloud Stream configuration options

大家好我是 Spring Cloud Streams 框架的新手。

在 Kafka Streams 的 spring 云流文档中,我可以看到带有前缀 spring.cloud.stream.function.definition 等的属性在示例中使用的应用程序 yaml/properties 文件中被引用。

我的问题是:对于 Spring 卡夫卡流的云流应用程序,我在哪里可以找到所有可在 application.yaml 中设置的属性的完整参考?

我知道云流使用云函数,但是云流配置在属性中有一个额外的“流”group/block,所以我不确定如何访问完整的模板 yaml其中列出了所有可用属性。

一般 Spring Cloud Stream 方面和特定 Kafka 活页夹主题的文档包含有关哪些配置属性可用的信息。

您还可以检查 Java 类 存储所有配置数据以获得完整的属性列表:

  • org.springframework.cloud.stream.config.BindingServiceProperties
  • org.springframework.cloud.stream.config.BinderProperties
  • org.springframework.cloud.stream.binder.ConsumerProperties
  • org.springframework.cloud.stream.binder.ProducerProperties

Kafka 和 Kafka Streams 绑定使用额外的属性扩展基本属性,您可以在以下包中找到这些属性:

  • org.springframework.cloud.stream.binder.kafka.properties
  • org.springframework.cloud.stream.binder.kafka.streams.properties