@Configuration
@ConditionalOnClass(value={com.azure.cosmos.CosmosAsyncClient.class,com.azure.spring.data.cosmos.core.CosmosTemplate.class})
@ConditionalOnResource(resources="classpath:cosmos.enable.config")
@EnableConfigurationProperties(value=CosmosProperties.class)
public class CosmosAutoConfiguration
extends com.azure.spring.data.cosmos.config.AbstractCosmosConfiguration
| Constructor and Description |
|---|
CosmosAutoConfiguration(CosmosProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
com.azure.core.credential.AzureKeyCredential |
azureKeyCredential() |
com.azure.cosmos.CosmosClientBuilder |
cosmosClientBuilder(com.azure.core.credential.AzureKeyCredential azureKeyCredential) |
com.azure.spring.data.cosmos.config.CosmosConfig |
cosmosConfig() |
protected String |
getDatabaseName() |
cosmosAsyncClient, cosmosFactory, cosmosTemplate, mappingCosmosConverter, reactiveCosmosTemplatepublic CosmosAutoConfiguration(CosmosProperties properties)
protected String getDatabaseName()
getDatabaseName in class com.azure.spring.data.cosmos.config.CosmosConfigurationSupport@Bean public com.azure.core.credential.AzureKeyCredential azureKeyCredential()
@Bean public com.azure.cosmos.CosmosClientBuilder cosmosClientBuilder(com.azure.core.credential.AzureKeyCredential azureKeyCredential)
public com.azure.spring.data.cosmos.config.CosmosConfig cosmosConfig()
cosmosConfig in class com.azure.spring.data.cosmos.config.AbstractCosmosConfigurationCopyright © 2021 Microsoft Corporation. All rights reserved.