Description
Rossen Stoyanchev opened SPR-15365 and commented
The use of the reactive WebClient
is expected for use in a Spring WebFlux application but is also just as beneficial in Spring MVC controllers on a Servlet stack along with other similar scenarios such as a Spring MVC controller using Spring Data Reactive.
It should be possible to return a reactive type such as Reactor Flux/Mono or RxJava Observable from a controller and have that be supported by Spring MVC.
Note that this was considered and resolved as "Won't Fix" a year ago. Knowing what we know now, it should be quite possible to achieve this technically and also the motivating use cases are much clearer.
Affects: 5.0 M5
Issue Links:
- RxJava Observable/Single and Reactor Flux/Mono as Spring MVC handler method return types [SPR-14046] #18618 RxJava Observable/Single and Reactor Flux/Mono as Spring MVC handler method return types
Referenced from: commits f293c4d, ae1ed16, 62c1e44, f7548a8, d9221fb