45.2. Spring Boot Auto-Configuration
组件支持 10 个选项,如下所列。
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.dataformat.beanio.bean-reader-error-handler-type | 在解析时使用自定义 org.apache.camel.dataformat.beanio.BeanIOErrorHandler 作为错误处理程序。配置错误处理程序的完全限定类名称。请注意,在使用自定义错误处理程序时,忽略UnidentifiedRecords、ignoreUnexpectedRecords 和 ignoreInvalidRecords 可能不会被使用。 | 字符串 | |
| camel.dataformat.beanio.content-type-header | 如果数据格式能够这样做,则数据格式是否应该使用 data 格式的类型设置 Content-Type 标头。例如,用于数据格式到 XML 的 application/xml 或用于数据格式的 application/json 发送到 JSon 等。 | false | 布尔值 |
| camel.dataformat.beanio.enabled | enable beanio dataformat | true | 布尔值 |
| camel.dataformat.beanio.encoding | 要使用的 charset。默认情况下是 JVM 平台,默认为 charset。 | 字符串 | |
| camel.dataformat.beanio.ignore-invalid-records | 是否忽略无效的记录。 | false | 布尔值 |
| camel.dataformat.beanio.ignore-unexpected-records | 是否忽略意外记录。 | false | 布尔值 |
| camel.dataformat.beanio.ignore-unidentified-records | 是否忽略未识别的记录。 | false | 布尔值 |
| camel.dataformat.beanio.mapping | BeanIO 映射文件。默认从 classpath 加载。您可以使用 file:、http: 或 classpath: 前缀来表示从在哪里加载映射文件。 | 字符串 | |
| camel.dataformat.beanio.stream-name | 要使用的流的名称。 | 字符串 | |
| camel.dataformat.beanio.unmarshal-single-object | 这个选项控制将 unmarshal 作为对象列表还是只作为单个对象列表。前者是默认模式,后者仅用于特殊用例,其中 beanio 将 Camel 消息映射到单个 POJO bean。 | false | 布尔值 |
ND