diff --git a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java index aee19c5392..caf5f48f8a 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -94,6 +94,14 @@ import org.springframework.web.util.UriTemplateHandler; * consider the reactive * {@link org.springframework.web.reactive.function.client.WebClient}. * + *
{@code RestTemplate} and {@code RestClient} share the same infrastructure + * (i.e. {@linkplain ClientHttpRequestFactory request factories}, request + * {@linkplain org.springframework.http.client.ClientHttpRequestInterceptor interceptors} and + * {@linkplain org.springframework.http.client.ClientHttpRequestInitializer initializers}, + * {@linkplain HttpMessageConverter message converters}, + * etc.), so any improvements made therein are shared as well. + * However, {@code RestClient} is the focus for new higher-level features. + * * @author Arjen Poutsma * @author Brian Clozel * @author Roy Clarkson