@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={org.neo4j.ogm.session.Neo4jSession.class,org.springframework.data.neo4j.repository.Neo4jRepository.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.Neo4jRepositoriesRegistrar.class) @AutoConfigureAfter(value=Neo4jDataAutoConfiguration.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 Neo4jRepository
type is on the classpath,
the Neo4j client driver API is on the classpath, and there is no other configured
Neo4jRepository
.
Once in effect, the auto-configuration is the equivalent of enabling Neo4j repositories
using the @EnableNeo4jRepositories
annotation.
EnableNeo4jRepositories