69.3. Spring Boot Auto-Configuration


组件支持 90 个选项,如下所列。

Expand
Name描述默认值类型

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

集群服务 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,默认的 ConsistencyMode.DEFAULT

 

ConsistencyMode

camel.component.consul.configuration.consul-client

对 registry 中的 com.orbitz.consul.Consul 的引用。

 

consul

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

用于查询的 note 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

启用 consul 组件

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 服务 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

  

字符串

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部