Renames httpClient bean to gatewayHttpClient.
fixes gh-1134
This commit is contained in:
@@ -516,7 +516,7 @@ public class GatewayAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public HttpClient httpClient(HttpClientProperties properties) {
|
||||
public HttpClient gatewayHttpClient(HttpClientProperties properties) {
|
||||
|
||||
// configure pool resources
|
||||
HttpClientProperties.Pool pool = properties.getPool();
|
||||
|
||||
@@ -55,6 +55,7 @@ public class GatewayAutoConfigurationTests {
|
||||
GatewayAutoConfiguration.class))
|
||||
.withPropertyValues("debug=true").run(context -> {
|
||||
assertThat(context).hasSingleBean(HttpClient.class);
|
||||
assertThat(context).hasBean("gatewayHttpClient");
|
||||
HttpClient httpClient = context.getBean(HttpClient.class);
|
||||
/*
|
||||
* FIXME: 2.1.0 HttpClientOptions options = httpClient.options();
|
||||
|
||||
Reference in New Issue
Block a user