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)