@Configuration public class FeginConfig extends Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
FeginConfig.UserErrorDecoder
自定义错误--将fegin的返回结果全部不变的返回
|
| 构造器和说明 |
|---|
FeginConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Result |
apply(FeginRemoteCall feginRemoteCall,
String serverName) |
static Result |
apply(FeginRemoteCall feginRemoteCall,
String serverName,
boolean isHandle) |
feign.codec.ErrorDecoder |
errorDecoder() |
@Bean public feign.codec.ErrorDecoder errorDecoder()
public static Result apply(FeginRemoteCall feginRemoteCall, String serverName, boolean isHandle)
public static Result apply(FeginRemoteCall feginRemoteCall, String serverName)
Copyright © 2021. All rights reserved.