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