65.17. Spring Boot Auto-Configuration
当在 Spring Boot 中使用 spring-ws 时,使用以下 Maven 依赖项来支持自动配置:
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-spring-ws</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency>
组件支持下面列出的 5 个选项。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.spring-ws.autowired-enabled | 是否启用自动关闭。这用于自动关闭选项(选项必须标记为 autowired),方法是在 registry 中查找查找是否有单个匹配类型实例,然后在组件上配置。这可以用于自动配置 JDBC 数据源、JMS 连接工厂、AWS 客户端等。 | true | 布尔值 |
camel.component.spring-ws.bridge-error-handler | 允许将消费者桥接到 Camel 路由错误处理程序,这意味着当消费者试图选择传入消息或类似信息时发生异常,现在将作为消息处理并由路由 Error Handler 处理。默认情况下,使用者将使用 org.apache.camel.spi.ExceptionHandler 来处理例外情况,该处理程序将被记录在 WARN 或 ERROR 级别,并忽略。 | false | 布尔值 |
camel.component.spring-ws.enabled | 是否启用 spring-ws 组件的自动配置。这默认是启用的。 | 布尔值 | |
camel.component.spring-ws.lazy-start-producer | 生成者是否应懒惰启动 (在第一个消息中)。通过懒惰启动,您可以使用此选项来允许 CamelContext 和路由在生成者启动期间启动,并导致路由启动失败。通过延迟启动,启动失败可以在路由消息期间使用 Camel 的路由错误处理程序进行处理。处理第一个消息后,创建并启动制作者需要花费时间和延长处理的总处理时间。 | false | 布尔值 |
camel.component.spring-ws.use-global-ssl-context-parameters | 启用使用全局 SSL 上下文参数。 | false | 布尔值 |