368.3. Spring Boot Auto-Configuration


组件支持 15 个选项,如下所列。

Expand
Name描述默认值类型

camel.component.websocket.enable-jmx

如果这个选项为 true,则会为这个端点启用 Jetty JMX 支持。如需了解更多详细信息,请参阅 Jetty JMX 支持。

false

布尔值

camel.component.websocket.enabled

启用 websocket 组件

true

布尔值

camel.component.websocket.host

主机名。默认值为 0.0.0.0

0.0.0.0

字符串

camel.component.websocket.max-threads

要为服务器线程池中最大线程数设置值。由于切换到 Jetty9,需要 MaxThreads/minThreads 或 threadPool 字段。maxThreads 的默认值为 1 2 noCores。

 

整数

camel.component.websocket.min-threads

要为服务器线程池中最少的线程数设置值。由于切换到 Jetty9,需要 MaxThreads/minThreads 或 threadPool 字段。minThreads 的默认值为 1。

 

整数

camel.component.websocket.port

端口号。默认值为 9292

9292

整数

camel.component.websocket.resolve-property-placeholders

组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。

true

布尔值

camel.component.websocket.socket-factory

配置包含子协议的自定义 WebSocketFactory 的映射。映射中的键是子协议。默认键是为默认实现保留的。

 

Map

camel.component.websocket.ssl-context-parameters

使用 SSLContextParameters 配置安全性。选项是 org.apache.camel.util.jsse.SSLContextParameters 类型。

 

字符串

camel.component.websocket.ssl-key-password

使用 SSL 时密钥存储的密码。

 

字符串

camel.component.websocket.ssl-keystore

密钥存储的路径。

 

字符串

camel.component.websocket.ssl-password

使用 SSL 时的密码。

 

字符串

camel.component.websocket.static-resources

为静态资源设置资源路径(如 .html 文件等)。如果使用 classpath: 前缀,则可以从 classpath: 加载资源,否则资源是从文件系统或 JAR 文件加载的。例如,若要从 root classpath 加载,请使用 classpath:., 或 classpath:WEB-INF/static if not configured (如 null),但没有使用静态资源。

 

字符串

camel.component.websocket.thread-pool

为服务器使用自定义线程池。由于切换到 Jetty9,需要 MaxThreads/minThreads 或 threadPool 字段。选项是 org.eclipse.jetty.util.thread.ThreadPool 类型。

 

字符串

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

启用使用全局 SSL 上下文参数。

false

布尔值

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部