mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-10 03:19:01 +00:00
Adapt RestTemplate factory auto-detection
This commit adapts the auto-detection of `ClientHttpRequestFactory` to look for an httpclient5 class. See gh-32461
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ import org.springframework.util.ClassUtils;
|
||||
*/
|
||||
public class ClientHttpRequestFactorySupplier implements Supplier<ClientHttpRequestFactory> {
|
||||
|
||||
private static final String APACHE_HTTP_CLIENT_CLASS = "org.apache.http.client.HttpClient";
|
||||
private static final String APACHE_HTTP_CLIENT_CLASS = "org.apache.hc.client5.http.impl.classic.HttpClients";
|
||||
|
||||
private static final boolean APACHE_HTTP_CLIENT_PRESENT = ClassUtils.isPresent(APACHE_HTTP_CLIENT_CLASS, null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user