122.3. Spring Boot Auto-Configuration


组件支持 13 个选项,它们如下所列。

Expand
Name描述默认类型

camel.component.google-mail-stream.client-factory

客户端工厂.选项是一个 org.apache.camel.component.google.mail.GoogleMailClientFactory 类型。

 

字符串

camel.component.google-mail-stream.configuration.access-token

OAuth 2 访问令牌。这通常在一小时后过期,因此建议长期使用 refreshToken。

 

字符串

camel.component.google-mail-stream.configuration.application-name

Google 邮件应用程序名称。示例应为 camel-google-mail/1.0

 

字符串

camel.component.google-mail-stream.configuration.client-id

邮件应用程序的客户端 ID

 

字符串

camel.component.google-mail-stream.configuration.client-secret

邮件应用程序的客户端机密

 

字符串

camel.component.google-mail-stream.configuration.index

为端点指定索引

 

字符串

camel.component.google-mail-stream.configuration.labels

要考虑的以逗号分隔的标签列表

 

字符串

camel.component.google-mail-stream.configuration.mark-as-read

在消耗消息后,将消息标记为 read

false

布尔值

camel.component.google-mail-stream.configuration.max-results

要返回的最大结果

10

Long

camel.component.google-mail-stream.configuration.query

要对 gmail 框执行的查询

is:unread

字符串

camel.component.google-mail-stream.configuration.refresh-token

OAuth 2 刷新令牌。使用这个方法,Google Calendar 组件可在当前过期时获得新的 accessToken - 应用程序长期需要。

 

字符串

camel.component.google-mail-stream.enabled

是否启用 google-mail-stream 组件自动配置。这会被默认启用。

 

布尔值

camel.component.google-mail-stream.resolve-property-placeholders

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

true

布尔值

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat