fuliqi
2024-09-25 d6a429826f922b40e0f09bc1616fc573eb232fd2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.ycl.config;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
 
/**
 * @author xp
 * @date 2022/11/16
 */
@Configuration
public class RestTemplateConfig {
 
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
 
}