v2
This commit is contained in:
@ -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 请求重试
|
||||
*/
|
||||
|
Reference in New Issue
Block a user