TestTemplateBeanConfig.java 512 Bytes
package com.pashanhoo.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author CAIYONGSONG
 * @commpany www.pashanhoo.com
 * @date 2022/8/18
 */
@Configuration
@Slf4j
public class TestTemplateBeanConfig {
    @Bean
    RestTemplate restTemplate(){
      log.info("完成初始化RestTemplate得bean");
        return new RestTemplate();
    }
}