Class CouchbaseAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration
@AutoConfiguration(after=JacksonAutoConfiguration.class)
@ConditionalOnClass(com.couchbase.client.java.Cluster.class)
@ConditionalOnProperty("spring.couchbase.connection-string")
@EnableConfigurationProperties(CouchbaseProperties.class)
public class CouchbaseAutoConfiguration
extends Object
Auto-configuration
for Couchbase.- Since:
- 1.4.0
- Author:
- EddĂș MelĂ©ndez, Stephane Nicoll, Yulin Qin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.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)
-
Constructor Details
-
CouchbaseAutoConfiguration
public CouchbaseAutoConfiguration()
-
-
Method Details
-
couchbaseClusterEnvironment
@Bean @ConditionalOnMissingBean public com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment(CouchbaseProperties properties, ObjectProvider<ClusterEnvironmentBuilderCustomizer> customizers) -
couchbaseCluster
@Bean(destroyMethod="disconnect") @ConditionalOnMissingBean public com.couchbase.client.java.Cluster couchbaseCluster(CouchbaseProperties properties, com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment)
-