Commit 65a41d2f authored by Phillip Webb's avatar Phillip Webb

Merge pull request #5339 from anandshah123/feature/gh-5333

* feature/gh-5333:
  Remove SolrAutoConfiguration @PreDestroy
parents f500d67e 4d667970
......@@ -16,10 +16,6 @@
package org.springframework.boot.autoconfigure.solr;
import java.io.IOException;
import javax.annotation.PreDestroy;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.impl.CloudSolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
......@@ -51,13 +47,6 @@ public class SolrAutoConfiguration {
this.properties = properties;
}
@PreDestroy
public void close() throws IOException {
if (this.solrClient != null) {
this.solrClient.close();
}
}
@Bean
@ConditionalOnMissingBean
public SolrClient solrClient() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment