Skip to content

Instantly share code, notes, and snippets.

View selcarpa's full-sized avatar
🎊
Unorganized

selcarpa selcarpa

🎊
Unorganized
View GitHub Profile
@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(),