69.3. Spring Boot Auto-Configuration
组件支持 90 个选项,如下所列。
| 名称 | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.component.consul.acl-token | 设置用于 Consul 的 ACL 令牌 | 字符串 | |
| camel.component.consul.cluster.service.acl-token | 字符串 | ||
| camel.component.consul.cluster.service.attributes | 自定义服务属性。 | Map | |
| camel.component.consul.cluster.service.block-seconds | 整数 | ||
| camel.component.consul.cluster.service.connect-timeout-millis | Long | ||
| camel.component.consul.cluster.service.consistency-mode | ConsistencyMode | ||
| camel.component.consul.cluster.service.datacenter | 字符串 | ||
| camel.component.consul.cluster.service.enabled | 设定是否应启用 consul 集群服务,默认为 false。 | false | 布尔值 |
| camel.component.consul.cluster.service.first-index | BigInteger | ||
| camel.component.consul.cluster.service.id | Cluster Service ID | 字符串 | |
| camel.component.consul.cluster.service.near-node | 字符串 | ||
| camel.component.consul.cluster.service.node-meta | list | ||
| camel.component.consul.cluster.service.order | 服务查找顺序/优先级. | 整数 | |
| camel.component.consul.cluster.service.password | 字符串 | ||
| camel.component.consul.cluster.service.ping-instance | 布尔值 | ||
| camel.component.consul.cluster.service.read-timeout-millis | Long | ||
| camel.component.consul.cluster.service.recursive | 布尔值 | ||
| camel.component.consul.cluster.service.root-path | 字符串 | ||
| camel.component.consul.cluster.service.session-lock-delay | 整数 | ||
| camel.component.consul.cluster.service.session-refresh-interval | 整数 | ||
| camel.component.consul.cluster.service.session-ttl | 整数 | ||
| camel.component.consul.cluster.service.ssl-context-parameters | SSLContextParameters | ||
| camel.component.consul.cluster.service.tags | Set | ||
| camel.component.consul.cluster.service.url | 字符串 | ||
| camel.component.consul.cluster.service.user-name | 字符串 | ||
| camel.component.consul.cluster.service.write-timeout-millis | Long | ||
| camel.component.consul.configuration.acl-token | 设置用于 Consul 的 ACL 令牌 | 字符串 | |
| camel.component.consul.configuration.action | 默认操作。CamelConsulAction 可以被 CamelConsulAction 覆盖 | 字符串 | |
| camel.component.consul.configuration.block-seconds | 第二个等待监视事件(默认为 10 秒) | 整数 | |
| camel.component.consul.configuration.connect-timeout-millis | OkHttpClient 的连接超时 | Long | |
| camel.component.consul.configuration.consistency-mode | 用于查询的 consistencyMode, default ConsistencyMode.DEFAULT | ConsistencyMode | |
| camel.component.consul.configuration.consul-client |
对 registry 中的 | consult | |
| camel.component.consul.configuration.datacenter | 数据中心 | 字符串 | |
| camel.component.consul.configuration.first-index | 监视的第一个索引,默认为 0 | BigInteger | |
| camel.component.consul.configuration.key | 默认密钥。CamelConsulKey 可以被 CamelConsulKey 覆盖 | 字符串 | |
| camel.component.consul.configuration.near-node | 用于查询的近节点。 | 字符串 | |
| camel.component.consul.configuration.node-meta | 用于查询的备注 meta-data。 | list | |
| camel.component.consul.configuration.password | 设置用于基本身份验证的密码 | 字符串 | |
| camel.component.consul.configuration.ping-instance | 配置 AgentClient 是否应该在返回 Consul 实例前尝试 ping | 布尔值 | |
| camel.component.consul.configuration.read-timeout-millis | OkHttpClient 的读取超时 | Long | |
| camel.component.consul.configuration.recursive | 递归监视,默认为 false | 布尔值 | |
| camel.component.consul.configuration.ssl-context-parameters | 使用 org.apache.camel.util.jsse.SSLContextParameters 实例的 SSL 配置。 | SSLContextParameters | |
| camel.component.consul.configuration.tags | 设置标签。您可以使用逗号分隔多个标签。 | Set | |
| camel.component.consul.configuration.url | Consul 代理 URL | 字符串 | |
| camel.component.consul.configuration.user-name | 设置用于基本身份验证的用户名 | 字符串 | |
| camel.component.consul.configuration.value-as-string | default 将从 Consul i.e. on KV 端点获取的值转换为字符串。 | 布尔值 | |
| camel.component.consul.configuration.write-timeout-millis | OkHttpClient 的写入超时 | Long | |
| camel.component.consul.datacenter | 数据中心 | 字符串 | |
| camel.component.consul.enabled | 启用 consult 组件 | true | 布尔值 |
| camel.component.consul.health.check.repository.checks | 定义要包含的检查。 | list | |
| camel.component.consul.health.check.repository.configurations | 健康检查配置。 | Map | |
| camel.component.consul.health.check.repository.enabled | 布尔值 | ||
| camel.component.consul.health.check.repository.failure-threshold | 整数 | ||
| camel.component.consul.health.check.repository.interval | 字符串 | ||
| camel.component.consul.password | 设置用于基本身份验证的密码 | 字符串 | |
| camel.component.consul.resolve-property-placeholders | 启动时组件是否应解析自身上的属性占位符。只有属于 String 类型的属性才能使用属性占位符。 | true | 布尔值 |
| camel.component.consul.service-registry.acl-token | 字符串 | ||
| camel.component.consul.service-registry.attributes | 自定义服务属性。 | Map | |
| camel.component.consul.service-registry.block-seconds | 整数 | ||
| camel.component.consul.service-registry.check-interval | 整数 | ||
| camel.component.consul.service-registry.check-ttl | 整数 | ||
| camel.component.consul.service-registry.connect-timeout-millis | Long | ||
| camel.component.consul.service-registry.consistency-mode | ConsistencyMode | ||
| camel.component.consul.service-registry.datacenter | 字符串 | ||
| camel.component.consul.service-registry.deregister-after | 整数 | ||
| camel.component.consul.service-registry.deregister-services-on-stop | 布尔值 | ||
| camel.component.consul.service-registry.enabled | 如果应该启用 consul service registry,则默认为 false。 | false | 布尔值 |
| camel.component.consul.service-registry.first-index | BigInteger | ||
| camel.component.consul.service-registry.id | Service Registry ID | 字符串 | |
| camel.component.consul.service-registry.near-node | 字符串 | ||
| camel.component.consul.service-registry.node-meta | list | ||
| camel.component.consul.service-registry.order | 服务查找顺序/优先级. | 整数 | |
| camel.component.consul.service-registry.override-service-host | 布尔值 | ||
| camel.component.consul.service-registry.password | 字符串 | ||
| camel.component.consul.service-registry.ping-instance | 布尔值 | ||
| camel.component.consul.service-registry.read-timeout-millis | Long | ||
| camel.component.consul.service-registry.recursive | 布尔值 | ||
| camel.component.consul.service-registry.service-host | 字符串 | ||
| camel.component.consul.service-registry.ssl-context-parameters | SSLContextParameters | ||
| camel.component.consul.service-registry.tags | Set | ||
| camel.component.consul.service-registry.url | 字符串 | ||
| camel.component.consul.service-registry.user-name | 字符串 | ||
| camel.component.consul.service-registry.write-timeout-millis | Long | ||
| camel.component.consul.ssl-context-parameters | 使用 org.apache.camel.util.jsse.SSLContextParameters 实例的 SSL 配置。选项是 org.apache.camel.util.jsse.SSLContextParameters 类型。 | 字符串 | |
| camel.component.consul.url | Consul 代理 URL | 字符串 | |
| camel.component.consul.use-global-ssl-context-parameters | 启用使用全局 SSL 上下文参数。 | false | 布尔值 |
| camel.component.consul.user-name | 设置用于基本身份验证的用户名 | 字符串 | |
| camel.component.consul.cluster.service.dc | 字符串 | ||
| camel.component.consul.configuration.dc | 数据中心 @deprecated 替换为 {@link #setDatacenter (String)}()} | 字符串 | |
| camel.component.consul.service-registry.dc | 字符串 |