Skip to content
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

Returning ResponseEntity from WebFlux controller method declared to return Object serialises entire response entity to response body [SPR-15785] #20340

spring-projects-issues opened this issue Jul 17, 2017 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Jul 17, 2017

Andy Wilkinson opened SPR-15785 and commented

Consider this method on a RestController

public Object test() {
	return new ResponseEntity<String>("testing", HttpStatus.OK);

With Spring MVC the response is:


With WebFlux the response is:


I'd expect to get the Spring MVC response in both cases.

Affects: 5.0 RC2

Issue Links:

  • #20287 WebFlux can't serialize "Object" return types as response body

Referenced from: commits 5690358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants