125.3. Spring Boot Auto-Configuration
组件支持 10 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.google-sheets.client-factory | 使用 GoogleSheetsClientFactory 作为创建客户端的工厂。默认情况下,将使用 BatchGoogleSheetsClientFactory。选项是 org.apache.camel.component.google.sheets.GoogleSheetsClientFactory 类型。 | 字符串 | |
camel.component.google-sheets.configuration.access-token | OAuth 2 访问令牌。这通常在一小时后过期,因此建议使用 refreshToken 进行长期使用。 | 字符串 | |
camel.component.google-sheets.configuration.api-name | 要执行的操作 | GoogleSheetsApiName | |
camel.component.google-sheets.configuration.application-name | Google Sheets 应用程序名称。示例将是 camel-google-sheets/1.0 | 字符串 | |
camel.component.google-sheets.configuration.client-id | sheets 应用程序的客户端 ID | 字符串 | |
camel.component.google-sheets.configuration.client-secret | sheets 应用程序的客户端 secret | 字符串 | |
camel.component.google-sheets.configuration.method-name | 用于所选操作的子操作 | 字符串 | |
camel.component.google-sheets.configuration.refresh-token | OAuth 2 刷新令牌。使用此功能时,Google Sheets 组件可在当前过期时获得一个新的 accessToken - 如果应用程序长期需要,则可能需要获取一个新的 accessToken。 | 字符串 | |
camel.component.google-sheets.enabled | 是否启用 google-sheets 组件的自动配置。这默认是启用的。 | 布尔值 | |
camel.component.google-sheets.resolve-property-placeholders | 启动时组件是否应解析自身上的属性占位符。只有属于 String 类型的属性才能使用属性占位符。 | true | 布尔值 |