xiangpei
2024-09-18 3b968807a33c0a876b4af520ff0959e9a8dca7d1
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();
    }
 
}