|
|
|
@ -28,6 +28,7 @@ import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
|
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration;
|
|
|
|
|
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.ConditionalOnMissingBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScanPackages;
|
|
|
|
@ -59,6 +60,7 @@ import org.springframework.data.cassandra.core.mapping.SimpleUserTypeResolver;
|
|
|
|
|
*/
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
|
@ConditionalOnClass({ Cluster.class, CassandraAdminOperations.class })
|
|
|
|
|
@ConditionalOnBean(Cluster.class)
|
|
|
|
|
@EnableConfigurationProperties(CassandraProperties.class)
|
|
|
|
|
@AutoConfigureAfter(CassandraAutoConfiguration.class)
|
|
|
|
|
public class CassandraDataAutoConfiguration {
|
|
|
|
|