import feign.Logger;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;
@Configuration
public class UserCenterFeignConfiguration {
@Bean
public Logger.Level level(){return Logger.Level.FULL;}}
import feign.Logger;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;
@Configuration
public class GlobalFeignConfiguration {
@Bean
public Logger.Level level(){return Logger.Level.FULL;}}
四、全局 , 基于配置的方式
修改yml
feign:
client:
config:
default: #全局
loggerLevel: full