Skip to content

Support for reactive types in return values from Spring MVC controllers [SPR-15365] #19929

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits f293c4d, ae1ed16, 62c1e44, f7548a8, d9221fb

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions