Separate Couchbase setup from Spring Data

This commit separates the basic setup of Couchbase from Spring Data so
that a `Bucket` and `Cluster` bucket beans are exposed even if Spring
Data is not available.

A basic setup happens if `spring.couchbase.bootstrap-hosts` is specified,
configuring the `default` bucket with no authentication unless specified
otherwise.

If Spring Data is available, those beans are re-used by default to
configure the `CouchbaseTemplate` and other repository-related beans.

Closes gh-5347
This commit is contained in:
Stephane Nicoll
2016-03-07 13:02:43 +01:00
parent 5fa752a37b
commit e67f2e2983
20 changed files with 835 additions and 258 deletions

View File

@@ -1,2 +1,3 @@
spring.couchbase.bootstrap-hosts=localhost
spring.data.couchbase.auto-index=true
spring.data.couchbase.bucket.name=default