Skip to content

Commit 93286ea

Browse files
authored
Update 72.1 Configure RestTemplate to use a proxy.md
1 parent a7a38c0 commit 93286ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IX. ‘How-to’ guides/72.1 Configure RestTemplate to use a proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###72.1 配置RestTemplate使用代理
2-
正如[Section 33.1, “RestTemplate customization”]()描述的那样,你可以使用`RestTemplateCustomizer``RestTemplateBuilder`构建一个自定义的`RestTemplate`,这是创建使用代理的`RestTemplate`的推荐方式。
2+
正如[Section 33.1, “RestTemplate customization”](../IV. Spring Boot features/33.1 RestTemplate customization.md)描述的那样,你可以使用`RestTemplateCustomizer``RestTemplateBuilder`构建一个自定义的`RestTemplate`,这是创建使用代理的`RestTemplate`的推荐方式。
33

44
代理配置的确切细节取决于底层使用的客户端请求factory,这里有个示例演示`HttpClient`配置的`HttpComponentsClientRequestFactory`对所有hosts都使用代理,除了`192.168.0.5`
55
```java

0 commit comments

Comments
 (0)