68.4. Spring Boot Auto-Configuration
组件支持 9 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.cometd.enabled | 启用附带组件 | 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& amp;option=value&…
以下是有关如何传递参数的一些示例
对于文件(对于 web Application directory -→ cometd://localhost:8080?resourceBase=file./webapp
for classpath 的资源) For classpath (当 web 资源被打包在 webapp 文件夹 -→ cometd://localhost:8080?resourceBase=classpath:webapp)中