@Configuration(proxyBeanMethods=false) public class RestTemplateConfig extends Object
| 构造器和说明 |
|---|
RestTemplateConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.http.impl.client.HttpClientBuilder |
httpClientBuilder() |
org.apache.http.conn.HttpClientConnectionManager |
poolingConnectionManager() |
org.springframework.web.client.RestTemplate |
restTemplate() |
@Bean @LoadBalanced @ConditionalOnMissingBean(value=org.springframework.web.client.RestTemplate.class) public org.springframework.web.client.RestTemplate restTemplate()
public org.apache.http.impl.client.HttpClientBuilder httpClientBuilder()
public org.apache.http.conn.HttpClientConnectionManager poolingConnectionManager()
Copyright © 2024. All rights reserved.