Skip to content

Commit

Permalink
增加 spring cloud openfeign 入门示例
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Feb 10, 2020
1 parent 2d5b824 commit 44903f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -3,6 +3,9 @@
import feign.Logger;
import org.springframework.context.annotation.Bean;

/**
* 全局 FeignClient 配置类
*/
public class DefaultFeignClientConfiguration {

@Bean
Expand Down
Expand Up @@ -4,12 +4,15 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;

/**
* 服务 demo-provider 的 FeignClient 配置类
*/
public class DemoProviderFeignClientConfiguration {

@Bean
@Primary
@Primary // 主 Bean
public Logger.Level feignClientLoggerLevel() {
return Logger.Level.BASIC;
return Logger.Level.FULL;
}

}

0 comments on commit 44903f5

Please sign in to comment.