@Configuration @ConditionalOnClass(value={org.apache.solr.client.solrj.SolrServer.class,org.springframework.data.solr.repository.SolrRepository.class}) @ConditionalOnMissingBean(value={org.springframework.data.solr.repository.support.SolrRepositoryFactoryBean.class,org.springframework.data.solr.repository.config.SolrRepositoryConfigExtension.class}) @ConditionalOnProperty(prefix="spring.data.solr.repositories", name="enabled", havingValue="true", matchIfMissing=true) @Import(value=org.springframework.boot.autoconfigure.data.solr.SolrRepositoriesRegistrar.class) public class SolrRepositoriesAutoConfiguration extends Object
Activates when there is no bean of type
SolrRepositoryFactoryBean
found in context, and both
SolrRepository
and
SolrServer
can be found on classpath.
EnableSolrRepositories
would
do.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.