File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/org/couchbase/quickstart/springdata/config Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 99import com .couchbase .client .core .msg .kv .DurabilityLevel ;
1010import com .couchbase .client .java .Bucket ;
1111import com .couchbase .client .java .Cluster ;
12+ import com .couchbase .client .java .env .ClusterEnvironment ;
1213import com .couchbase .client .java .manager .bucket .BucketSettings ;
1314import com .couchbase .client .java .manager .bucket .BucketType ;
1415
@@ -81,4 +82,10 @@ public Bucket getCouchbaseBucket(Cluster cluster){
8182 }
8283 return cluster .bucket (getBucketName ());
8384 }
85+
86+ @ Override
87+ @ Bean (destroyMethod = "disconnect" )
88+ public Cluster couchbaseCluster (ClusterEnvironment couchbaseClusterEnvironment ) {
89+ return Cluster .connect (getConnectionString (),getUserName (),getPassword ());
90+ }
8491}
You can’t perform that action at this time.
0 commit comments