|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2017 the original author or authors.
|
|
|
|
* Copyright 2012-2019 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -28,6 +28,7 @@ import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.cassandra.CassandraProperties;
|
|
|
|
import org.springframework.boot.autoconfigure.cassandra.CassandraProperties;
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScanPackages;
|
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScanPackages;
|
|
|
@ -59,6 +60,7 @@ import org.springframework.data.cassandra.core.mapping.SimpleUserTypeResolver;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnClass({ Cluster.class, CassandraAdminOperations.class })
|
|
|
|
@ConditionalOnClass({ Cluster.class, CassandraAdminOperations.class })
|
|
|
|
|
|
|
|
@ConditionalOnBean(Cluster.class)
|
|
|
|
@EnableConfigurationProperties(CassandraProperties.class)
|
|
|
|
@EnableConfigurationProperties(CassandraProperties.class)
|
|
|
|
@AutoConfigureAfter(CassandraAutoConfiguration.class)
|
|
|
|
@AutoConfigureAfter(CassandraAutoConfiguration.class)
|
|
|
|
public class CassandraDataAutoConfiguration {
|
|
|
|
public class CassandraDataAutoConfiguration {
|
|
|
|