|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
|
* Copyright 2002-2025 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. |
|
|
|
|
@ -179,7 +179,7 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
@@ -179,7 +179,7 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Create a new instance of the {@link RestTemplate} using default settings. |
|
|
|
|
* Create a new instance with default settings. |
|
|
|
|
* Default {@link HttpMessageConverter HttpMessageConverters} are initialized. |
|
|
|
|
*/ |
|
|
|
|
public RestTemplate() { |
|
|
|
|
@ -238,7 +238,7 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
@@ -238,7 +238,7 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Create a new instance of the {@link RestTemplate} based on the given {@link ClientHttpRequestFactory}. |
|
|
|
|
* Create a new instance with the given {@link ClientHttpRequestFactory}. |
|
|
|
|
* @param requestFactory the HTTP request factory to use |
|
|
|
|
* @see org.springframework.http.client.SimpleClientHttpRequestFactory |
|
|
|
|
* @see org.springframework.http.client.HttpComponentsClientHttpRequestFactory |
|
|
|
|
@ -249,9 +249,8 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
@@ -249,9 +249,8 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Create a new instance of the {@link RestTemplate} using the given list of |
|
|
|
|
* {@link HttpMessageConverter} to use. |
|
|
|
|
* @param messageConverters the list of {@link HttpMessageConverter} to use |
|
|
|
|
* Create a new instance with the given message converters. |
|
|
|
|
* @param messageConverters the list of converters to use |
|
|
|
|
* @since 3.2.7 |
|
|
|
|
*/ |
|
|
|
|
public RestTemplate(List<HttpMessageConverter<?>> messageConverters) { |
|
|
|
|
|