whyclxw
2024-09-02 16331f051216bbe274ca3b80fd2973055340594b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.whyc.config;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
 
@Configuration
public class HttpConifg {
 
    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
 
}