FeignConfiguration.java 611 Bytes
Newer Older
1 2 3 4 5
package com.tanpu.community.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
刘基明's avatar
刘基明 committed
6
import org.springframework.web.client.RestTemplate;
7 8 9 10 11 12 13 14 15 16 17 18 19

/**
 * @description:
 * @author: zejia zj wu
 * @create: 2021-07-23 19:48
 **/
@Configuration
public class FeignConfiguration {
    @Bean
    Logger.Level feignLoggerLevel() {
        //这里记录所有,根据实际情况选择合适的日志level
        return Logger.Level.FULL;
    }
刘基明's avatar
刘基明 committed
20 21 22 23 24

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
25
}