类 Neo4jRepositoriesAutoConfiguration


  • @Configuration
    @ConditionalOnClass({org.neo4j.ogm.session.Neo4jSession.class,org.springframework.data.neo4j.repository.GraphRepository.class})
    @ConditionalOnMissingBean({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(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.

    从以下版本开始:
    1.4.0
    另请参阅:
    EnableNeo4jRepositories