@Configuration @ConditionalOnClass(value={org.neo4j.ogm.session.Neo4jSession.class,org.springframework.data.neo4j.repository.GraphRepository.class}) @ConditionalOnMissingBean(value={org.springframework.data.neo4j.repository.support.Neo4jRepositoryFactoryBean.class,org.springframework.data.neo4j.repository.config.Neo4jRepositoryConfigurationExtension.class}) @ConditionalOnProperty(prefix="spring.data.neo4j.repositories", name="enabled", havingValue="true", matchIfMissing=true) @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 Neo4jRepositoryFactoryBean
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.
EnableNeo4jRepositories
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.