346.2. Spring Boot Auto-Configuration

组件支持 7 个选项,如下所示。

名称描述默认类型

camel.component.thrift.enabled

是否启用 thrift 组件自动配置。默认启用。

 

布尔值

camel.component.thrift.resolve-property-placeholders

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

true

布尔值

camel.component.thrift.use-global-ssl-context-parameters

确定thrift 组件是否使用全局 SSL 上下文参数

false

布尔值

camel.dataformat.thrift.content-type-format

定义内容类型格式,其中的 thrift 消息将被序列化/反序列化为 Java。格式可以是 native 或 json,可以是原生二进制偏移 json 或简单的 json 字段表示。默认值为 binary。

binary

字符串

camel.dataformat.thrift.content-type-header

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

false

布尔值

camel.dataformat.thrift.enabled

是否启用偏移数据格式的自动配置。默认启用。

 

布尔值

camel.dataformat.thrift.instance-class

取消armshalling 时要使用的类名称

 

字符串

ND