From 7e2d0fd1c010f4a7485682e99ef9760d6536c9c0 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 22 Nov 2016 14:32:38 -0800 Subject: [PATCH] Check for Spring Data before configuring Couchbase Add guard to `CouchbaseAutoConfiguration` so ensure that Spring Data Couchbase is on the classpath. Fixes gh-7453 --- .../autoconfigure/couchbase/CouchbaseAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfiguration.java index 4eb6a72c32..9f5a7dcd5f 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfiguration.java @@ -44,7 +44,7 @@ import org.springframework.data.couchbase.config.CouchbaseConfigurer; * @since 1.4.0 */ @Configuration -@ConditionalOnClass({ CouchbaseBucket.class, Cluster.class }) +@ConditionalOnClass({ CouchbaseBucket.class, Cluster.class, CouchbaseConfigurer.class }) @Conditional(CouchbaseAutoConfiguration.CouchbaseCondition.class) @EnableConfigurationProperties(CouchbaseProperties.class) public class CouchbaseAutoConfiguration {