-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response with type ParameterizedType not working with WebClient #48
Comments
@OlgaMaciaszek What is the roadmap for this project? Best Regards |
Hi @michael-wirth, we're going to still maintain it till Spring Cloud |
Hi @OlgaMaciaszek |
Thanks, @michael-wirth - it will be very helpful. I will definitely get to your PRs, but till the end of Nov work on anything unrelated to the |
Describe the bug
Using spring cloud square 0.4.1
When creating an interface for retrofit and declaring a return type which is a parameterized class doesn't allow the application to start due to a ClassCastException in
WebClientCallAdapterFactory#81
or, if not wrapping inside a Mono/Flux,WebClientCallAdapterFactory#87
The ReactorCallAdapterFactory used in
com.jakewharton.retrofit:retrofit2-reactor-adapter
allows such things, but then we lose the feature of a fully non-blocking client.Also trying to use spring-cloud-square-retrofit + spring-cloud-square-okhttp does not work in webflux applications since a
HttpMessageConverters
bean is not created due to Conditional annotations.Sample
Just create an application with spring webflux and an interface like the following:
And include in your pom
The text was updated successfully, but these errors were encountered: