@Configuration @ConditionalOnClass(value={com.datastax.driver.core.Cluster.class,org.springframework.data.cassandra.core.CassandraAdminOperations.class}) @EnableConfigurationProperties(value=CassandraProperties.class) public class CassandraDataAutoConfiguration extends Object
Auto-configuration
for Spring Data's Cassandra support.Constructor and Description |
---|
CassandraDataAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.cassandra.convert.CassandraConverter |
cassandraConverter(org.springframework.data.cassandra.mapping.CassandraMappingContext mapping) |
org.springframework.data.cassandra.mapping.CassandraMappingContext |
cassandraMapping() |
org.springframework.data.cassandra.core.CassandraTemplate |
cassandraTemplate(com.datastax.driver.core.Session session,
org.springframework.data.cassandra.convert.CassandraConverter converter) |
org.springframework.data.cassandra.config.CassandraSessionFactoryBean |
session(org.springframework.data.cassandra.convert.CassandraConverter converter) |
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.mapping.CassandraMappingContext cassandraMapping()
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.convert.CassandraConverter cassandraConverter(org.springframework.data.cassandra.mapping.CassandraMappingContext mapping)
@Bean @ConditionalOnMissingBean(value=com.datastax.driver.core.Session.class) public org.springframework.data.cassandra.config.CassandraSessionFactoryBean session(org.springframework.data.cassandra.convert.CassandraConverter converter) throws Exception
Exception
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.CassandraTemplate cassandraTemplate(com.datastax.driver.core.Session session, org.springframework.data.cassandra.convert.CassandraConverter converter) throws Exception
Exception
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.