44.2. Spring Boot Auto-Configuration
组件支持 10 个选项,如下所示。
名称 | 描述 | 默认 | 类型 |
---|---|---|---|
camel.dataformat.beanio.bean-reader-error-handler-type | 在解析时,使用自定义 org.apache.camel.dataformat.beanio.BeanIOErrorHandler 作为错误处理程序。配置错误处理程序的完全限定类名称。请注意,选项 ignoreUnidentifiedRecords、ignoreUnexpectedRecords 和 ignoreInvalidRecords 在使用自定义错误处理程序时可能无法使用。 | 字符串 | |
camel.dataformat.beanio.content-type-header | 如果数据格式能够这样做,则数据格式是否应该以 data 格式设置 Content-Type 标头。例如,用于数据格式的 application/xml (数据格式)或 application/json 用于数据格式 marshalling to JSon etc。 | false | 布尔值 |
camel.dataformat.beanio.enabled | 启用 beanio 数据格式 | 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 | 该选项可控制是否作为对象列表还是仅作为单个对象进行分类。前者是默认模式,后者仅用于特殊用例,其中 beanio 将 Camel 消息映射到单个 POJO bean。 | false | 布尔值 |
ND