@Configuration @ConditionalOnClass(value={org.neo4j.ogm.session.Neo4jSession.class,org.springframework.data.neo4j.repository.GraphRepository.class}) @ConditionalOnMissingBean(value={org.springframework.data.neo4j.repository.support.GraphRepositoryFactoryBean.class,org.springframework.data.neo4j.repository.config.Neo4jRepositoryConfigurationExtension.class}) @Import(value=org.springframework.boot.autoconfigure.data.neo4j.Neo4jRepositoriesAutoConfigureRegistrar.class) public class Neo4jRepositoriesAutoConfiguration extends Object
Auto-configuration for Spring Data's Neo4j
Repositories.
Activates when there is no bean of type
GraphRepositoryFactoryBean
configured in the context, the Spring Data Neo4j
GraphRepository type is on the
classpath, the Neo4j client driver API is on the classpath, and there is no other
configured GraphRepository.
Once in effect, the auto-configuration is the equivalent of enabling Neo4j repositories
using the
EnableNeo4jRepositories
annotation.
EnableNeo4jRepositoriesCopyright © 2016 Pivotal Software, Inc.. All rights reserved.