Pu Zhibing
4 天以前 db0b7644a9a5a62ac2da3cf571fee41bb8b6974f
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();
    }
 
}