68.4. Spring Boot Auto-Configuration


组件支持 9 个选项,如下所示。

名称描述默认类型

camel.component.cometd.enabled

enable cometd 组件

true

布尔值

camel.component.cometd.extensions

要使用允许修改进入和传出请求的自定义 BayeuxServer.Extension 列表。

 

list

camel.component.cometd.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.component.cometd.security-policy

使用自定义配置的 SecurityPolicy 来控制授权。选项是一个 org.cometd.bayeux.server.SecurityPolicy 类型。

 

字符串

camel.component.cometd.ssl-context-parameters

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

 

字符串

camel.component.cometd.ssl-key-password

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

 

字符串

camel.component.cometd.ssl-keystore

密钥存储的路径。

 

字符串

camel.component.cometd.ssl-password

使用 SSL 时的密码。

 

字符串

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

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

false

布尔值

您可以使用以下格式在 URI 中附加查询选项 ?option=value&option=value&…​

以下是如何传递参数的一些示例

对于 file (用于 Web 应用程序目录中的 webapp 资源 -→ cometd://localhost:8080?resourceBase=file./webapp
For classpath)(例如,web 资源被打包在 webapp 文件夹中 -→ istd://localhost:8080?resourceBase=classpath:webapp)

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.