jinpengyong
2021-11-02 bc85f620ec6bc7bdbe4c95fc227e1ee71119a9b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.moral.api.config.rest;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
 
@Configuration
public class RestConfig {
 
    @Bean
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
}