Pu Zhibing
17 小时以前 74dbde1f3b2f42c42a67ccd1df82f4d89c729559
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.ruoyi.jianguan.elutong.config;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
 
@Configuration
public class RestConfigBean {
 
//    @Bean
//    public RestTemplate getRestTemplate() {
//        return new RestTemplate(new HttpsClientRequestFactory());
//    }
 
    @Bean
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
 
}