See gh-13320
pull/13322/merge
Stephane Nicoll 7 years ago
parent bc47bf44a9
commit 77dcbdb1e5

@ -39,7 +39,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/** /**
* {@link EnableAutoConfiguration Auto-Configuration} for Elasticsearch REST clients. * {@link EnableAutoConfiguration Auto-configuration} for Elasticsearch REST clients.
* *
* @author Brian Clozel * @author Brian Clozel
* @since 2.1.0 * @since 2.1.0
@ -60,7 +60,7 @@ public class RestClientAutoConfiguration {
.getIfAvailable(Collections::emptyList); .getIfAvailable(Collections::emptyList);
} }
@Bean(destroyMethod = "close") @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean
public RestClient restClient(RestClientBuilder builder) { public RestClient restClient(RestClientBuilder builder) {
return builder.build(); return builder.build();

Loading…
Cancel
Save