diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java index 92bb4db1c4..3b5d2d8f35 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java @@ -76,7 +76,7 @@ class InitializrService { protected CloseableHttpClient getHttp() { if (this.http == null) { - this.http = HttpClientBuilder.create().build(); + this.http = HttpClientBuilder.create().useSystemProperties().build(); } return this.http; }