Commit 77dcbdb1 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish

See gh-13320
parent bc47bf44
...@@ -39,7 +39,7 @@ import org.springframework.context.annotation.Bean; ...@@ -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 { ...@@ -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();
......
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