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:WEB-INF/static 如果未配置(如 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

© 2025 Red Hat