Check for Spring Data before configuring Couchbase

Add guard to `CouchbaseAutoConfiguration` so ensure that Spring Data
Couchbase is on the classpath.

Fixes gh-7453
pull/7462/head
Phillip Webb 8 years ago
parent 288398b8b7
commit 7e2d0fd1c0

@ -44,7 +44,7 @@ import org.springframework.data.couchbase.config.CouchbaseConfigurer;
* @since 1.4.0 * @since 1.4.0
*/ */
@Configuration @Configuration
@ConditionalOnClass({ CouchbaseBucket.class, Cluster.class }) @ConditionalOnClass({ CouchbaseBucket.class, Cluster.class, CouchbaseConfigurer.class })
@Conditional(CouchbaseAutoConfiguration.CouchbaseCondition.class) @Conditional(CouchbaseAutoConfiguration.CouchbaseCondition.class)
@EnableConfigurationProperties(CouchbaseProperties.class) @EnableConfigurationProperties(CouchbaseProperties.class)
public class CouchbaseAutoConfiguration { public class CouchbaseAutoConfiguration {

Loading…
Cancel
Save