This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public Client loggedFeignClient(SpringClientFactory springClientFactory) { | |
return new LoadBalancerFeignClient(new Client.Default(null, null) { | |
@Override | |
public Response execute(Request request, Request.Options options) throws IOException { | |
log.info( | |
String.format( | |
"Feign请求开始:\n###\n%s %s\n%s\n\n%s", | |
request.httpMethod().toString(), | |
request.url(), |