@AutoConfiguration(after=JacksonAutoConfiguration.class) @ConditionalOnClass(value=com.couchbase.client.java.Cluster.class) @ConditionalOnProperty(value="spring.couchbase.connection-string") @EnableConfigurationProperties(value=CouchbaseProperties.class) public class CouchbaseAutoConfiguration extends Object
Auto-configuration
for Couchbase.Constructor and Description |
---|
CouchbaseAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.couchbase.client.java.Cluster |
couchbaseCluster(CouchbaseProperties properties,
com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment) |
com.couchbase.client.java.env.ClusterEnvironment |
couchbaseClusterEnvironment(CouchbaseProperties properties,
ObjectProvider<ClusterEnvironmentBuilderCustomizer> customizers) |
@Bean @ConditionalOnMissingBean public com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment(CouchbaseProperties properties, ObjectProvider<ClusterEnvironmentBuilderCustomizer> customizers)
@Bean(destroyMethod="disconnect") @ConditionalOnMissingBean public com.couchbase.client.java.Cluster couchbaseCluster(CouchbaseProperties properties, com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment)