-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed as not planned
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)
Description
@Bean
JdkClientHttpRequestFactory jdkClientHttpRequestFactory() {
return new JdkClientHttpRequestFactory();
}
@Bean
RestClient restClient(
JdkClientHttpRequestFactory jdkClientHttpRequestFactory,
RestClient.Builder builder) {
return builder
.requestFactory(jdkClientHttpRequestFactory)
.build();
}
@Bean
RestTemplate restTemplate(
JdkClientHttpRequestFactory jdkClientHttpRequestFactory,
RestTemplateBuilder builder) {
return builder
.requestFactory(() -> jdkClientHttpRequestFactory)
.build();
}
it would be nice if the ResstClient also took a Supplier<T> and the RestTemplate took a reference.
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)