@EnableConfigurationProperties(value={ProxyProperties.class,RestTemplateProperties.class})
@Configuration
public class RestTemplateConfiguration
extends Object
| 构造器和说明 |
|---|
RestTemplateConfiguration(ProxyProperties proxyProperties,
RestTemplateProperties restTemplateProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.web.client.RestTemplate |
restTemplate(org.springframework.http.client.ClientHttpRequestFactory factory) |
RestTemplateUtils |
restTemplateUtils(org.springframework.web.client.RestTemplate restTemplate) |
org.springframework.http.client.ClientHttpRequestFactory |
simpleClientHttpRequestFactory() |
public RestTemplateConfiguration(ProxyProperties proxyProperties, RestTemplateProperties restTemplateProperties)
@Bean public org.springframework.web.client.RestTemplate restTemplate(org.springframework.http.client.ClientHttpRequestFactory factory)
@Bean public org.springframework.http.client.ClientHttpRequestFactory simpleClientHttpRequestFactory()
@Bean @ConditionalOnMissingBean public RestTemplateUtils restTemplateUtils(org.springframework.web.client.RestTemplate restTemplate)
Copyright © 2024. All rights reserved.