@Configuration @ConditionalOnClass(value={org.apache.solr.client.solrj.SolrServer.class,org.springframework.data.solr.repository.SolrRepository.class}) @ConditionalOnMissingBean(value=org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.class) @Import(value=org.springframework.boot.autoconfigure.data.solr.SolrRepositoriesAutoConfigureRegistrar.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 © 2014 Pivotal Software, Inc.. All rights reserved.