113.6. Spring Boot Auto-Configuration
组件支持 6 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.platform-http.autowired-enabled | 是否启用自动关闭。这用于自动关闭选项(选项必须标记为 autowired),方法是在 registry 中查找查找是否有单个匹配类型实例,然后在组件上配置。这可以用于自动配置 JDBC 数据源、JMS 连接工厂、AWS 客户端等。 | true | 布尔值 |
camel.component.platform-http.bridge-error-handler | 允许将消费者桥接到 Camel 路由错误处理程序,这意味着当消费者试图选择传入消息或类似信息时发生异常,现在将作为消息处理并由路由 Error Handler 处理。默认情况下,使用者将使用 org.apache.camel.spi.ExceptionHandler 来处理例外情况,该处理程序将被记录在 WARN 或 ERROR 级别,并忽略。 | false | 布尔值 |
camel.component.platform-http.enabled | 是否启用 platform-http 组件的自动配置。这默认是启用的。 | 布尔值 | |
camel.component.platform-http.engine | 用于服务请求的 HTTP 服务器引擎实施。选项是 org.apache.camel.component.platform.http.spi.PlatformHttpEngine 类型。 | PlatformHttpEngine | |
camel.component.platform-http.handle-write-response-error | 当 Camel 完成处理消息后,HTTP 服务器正在写入响应。这个选项控制 Camel 在编写响应期间是否应该捕获任何故障,这允许Completion/UnitOfWork 将交换视为失败,并可以访问 HTTP 服务器的原因异常。 | false | 布尔值 |
camel.component.platform-http.header-filter-strategy | 使用自定义 org.apache.camel.spi.HeaderFilterStrategy 过滤到 Camel 消息的标头。选项是一个 org.apache.camel.spi.HeaderFilterStrategy 类型。 | HeaderFilterStrategy |