21.4. Spring Boot Auto-Configuration
组件支持 15 个选项,如下所列。
| 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,则 consumer 参数不会被嵌套到阵列中。如果协议指定了更多用于消息的 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 标头。例如,用于数据格式到 XML 的 application/xml 或用于数据格式的 application/json 发送到 JSon 等。 | false | 布尔值 |
| camel.dataformat.avro.enabled | 启用 avro dataformat | true | 布尔值 |
| camel.dataformat.avro.instance-class-name | 用于 marshal 和 unmarshalling 的类名称 | 字符串 |
ND