Pu Zhibing
8 天以前 3f8d6fb524fc56a569063ad6459a75ddbc37912c
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();
    }
 
}