@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}) @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.