zhubaomin
2024-08-23 7793e21301e0b3211d450f39e2690bac5d89d5e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.dy.common.springUtil;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
 
/**
 * 提供 RestTemplate
 */
@Configuration
public class RestTemplateConfiguration {
 
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
 
}