19.5. Spring Boot Auto-Configuration


组件支持 15 个选项,它们如下所列。

Expand
Name描述默认类型

camel.component.avro.configuration.host

要使用的主机名

 

字符串

camel.component.avro.configuration.message-name

要发送的消息的名称。

 

字符串

camel.component.avro.configuration.port

要使用的端口号

 

整数

camel.component.avro.configuration.protocol

要使用的 Avro 协议

 

协议

camel.component.avro.configuration.protocol-class-name

Avro 协议使用 FQN 类名称定义

 

字符串

camel.component.avro.configuration.protocol-location

Avro 协议位置

 

字符串

camel.component.avro.configuration.reflection-protocol

如果提供的协议对象被反映为协议。应该只与 protocol 参数一起使用,因为用于 protocolClassName 协议类型将被自动检测

false

布尔值

camel.component.avro.configuration.single-parameter

如果为 true,则消费者参数将不会嵌套到阵列中。如果协议为消息指定了更多,则 1 参数将失败

false

布尔值

camel.component.avro.configuration.transport

要使用的传输,可以是 http 或 netty

 

AvroTransport

camel.component.avro.configuration.uri-authority

使用授权(用户名和密码)

 

字符串

camel.component.avro.enabled

启用 avro 组件

true

布尔值

camel.component.avro.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.dataformat.avro.content-type-header

如果数据格式能够这样做,则数据格式是否应该以 data 格式设置 Content-Type 标头。例如,用于数据格式的 application/xml (数据格式)或 application/json 用于数据格式 marshalling to JSon etc。

false

布尔值

camel.dataformat.avro.enabled

启用 avro dataformat

true

布尔值

camel.dataformat.avro.instance-class-name

用于 marshal 和 unmarshalling 的类名称

 

字符串

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat