PlaytikaOSS / feign-reactive

Reactive Feign client inspired by https://github.com/OpenFeign project
Apache License 2.0
618 stars 125 forks source link

change default jackson to gson #618

Closed dnjat closed 1 year ago

dnjat commented 1 year ago

using feign-reactive,reactor.netty.http.client http.codec.json default jackson, can support gson?

rhys-saldanha commented 1 year ago

Reactive Spring doesn't support GSON. You can read more here: https://github.com/spring-projects/spring-framework/issues/27131

The issue comments do mention a work-around where you can define a custom encoder/decoder which uses GSON and will work in "most" cases. I can see that WebReactiveFeign.builder can take in a WebClientFeignCustomizer, which should allow you to pass in a customiser that configures WebClient to use your custom encoder/decoder.