@Configuration @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.Neo4jRepositoriesAutoConfigureRegistrar.class) @AutoConfigureAfter(value=Neo4jDataAutoConfiguration.class) public class Neo4jRepositoriesAutoConfiguration extends ObjectSE
Auto-configuration
。 コンテキストに Neo4jRepositoryFactoryBean
型の Bean が構成されておらず、Spring Data Neo4j Neo4jRepository
型がクラスパスにあり、Neo4j クライアントドライバー API がクラスパスにあり、他に構成されている Neo4jRepository
がない場合にアクティブになります。
有効になると、自動構成は、EnableNeo4jRepositories
アノテーションを使用して Neo4j リポジトリを有効にすることと同等になります。
EnableNeo4jRepositories
コンストラクターと説明 |
---|
Neo4jRepositoriesAutoConfiguration() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.