This commit is contained in:
付庆吉
2021-10-21 10:33:09 +08:00
parent e06eb9f636
commit a51797267a

View File

@ -1,7 +1,9 @@
package com.chinaunicom.mall.ebtp.cloud.security.starter.config;
import com.chinaunicom.mall.ebtp.common.config.FeignConfig;
import feign.FeignException;
import feign.Logger;
import feign.RequestTemplate;
import feign.RetryableException;
import feign.codec.ErrorDecoder;
import lombok.extern.slf4j.Slf4j;
@ -15,7 +17,7 @@ import static feign.FeignException.errorStatus;
@Slf4j
@Configuration
public class FeignClientConfiguration {
public class FeignClientConfiguration extends FeignConfig {
@Bean
public Logger.Level feignLoggerLevel() {
@ -44,6 +46,15 @@ public class FeignClientConfiguration {
};
}
/**
* @param template
*/
@Override
public void apply(RequestTemplate template) {
super.apply(template);
}
/**
* @return 请求重试
*/