You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using both spring-cloud-square-retrofitand spring-cloud-square-retrofit-core dependencies. I've declared a Retrofit Converter.Factory for kotlinx.serialization.
Unfortunately this Converter.Factory bean is registered together with the SpringConverterFactory declared in the DefaultRetrofitClientConfiguration because this bean is declared with @ConditionalOnMissingBean(ConverterFactory.class) targeting Spring's ConverterFactory class instead of Retrofit's Converter.Factory class.
It results in having the SpringConverterFactory called instead of my custom Retrofit.Factory
Sample
To fix replace @ConditionalOnMissingBean(ConverterFactory.class) in @ConditionalOnMissingBean(Converter.Factory.class) in the DefaultRetrofitClientConfiguration class
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm using both
spring-cloud-square-retrofit
andspring-cloud-square-retrofit-core
dependencies. I've declared a RetrofitConverter.Factory
for kotlinx.serialization.Unfortunately this
Converter.Factory
bean is registered together with theSpringConverterFactory
declared in theDefaultRetrofitClientConfiguration
because this bean is declared with@ConditionalOnMissingBean(ConverterFactory.class)
targeting Spring'sConverterFactory
class instead of Retrofit'sConverter.Factory
class.It results in having the
SpringConverterFactory
called instead of my customRetrofit.Factory
Sample
To fix replace
@ConditionalOnMissingBean(ConverterFactory.class)
in@ConditionalOnMissingBean(Converter.Factory.class)
in theDefaultRetrofitClientConfiguration
classThe text was updated successfully, but these errors were encountered: