Open emersonborges opened 6 years ago
What do you mean by manually? Providing a feign.okhttp.OkHttpClient
bean?
When I create a feign client with Feign builder:
Feign.builder()
.client(new OkHttpClient())
.target(FeignInterface.class, "http://localService");
OkHttpClient
is a final class: https://github.com/OpenFeign/feign/blob/master/okhttp/src/main/java/feign/okhttp/OkHttpClient.java
@emersonborges thanks, would you like to create a fix for this?
Feign clients created manually with Okhttp client doesn't work, I believe it's because Okhttp class is final and the AOP approach doesn't consider final classes. Should be ok to remove this final type validation from the aspect? Or is there another way to make this work with the Okhttp client?