|
|
@@ -1,10 +1,9 @@
|
|
|
package com.java110.core.feign;
|
|
|
|
|
|
-import feign.Feign;
|
|
|
+import feign.Logger;
|
|
|
import feign.codec.ErrorDecoder;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.context.annotation.Scope;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -12,7 +11,6 @@ import org.springframework.context.annotation.Scope;
|
|
|
@Configuration
|
|
|
public class FeignConfiguration {
|
|
|
/**
|
|
|
- *
|
|
|
* @return
|
|
|
*/
|
|
|
@Bean
|
|
|
@@ -20,6 +18,14 @@ public class FeignConfiguration {
|
|
|
return new UserErrorDecoder();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Bean
|
|
|
+ Logger.Level feignLoggerLevel() {
|
|
|
+ //这里记录所有,根据实际情况选择合适的日志level
|
|
|
+ return Logger.Level.FULL;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @return
|