@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={org.apache.solr.client.solrj.SolrClient.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 SolrClient
can be found on
classpath.
@EnableSolrRepositories
would do.