whyclxw
2024-09-03 d3b87a5ef334af3497d33f90d954517184449ac3
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();
    }
 
}