Skip to content

WebClient bodyToFlux(String.class) for string list doesn't separate individual values #22662

@blabadi

Description

@blabadi

Affects: 5.1.5.RELEASE

Attached demo project for reproducing
bug-demo.zip

spring boot version: spring boot 2.1.3

if I have json response like this : ["v1", "v2", "v3"]
doing:
webclient.get().retrive().bodyToFlux(String.class)

will emit "["v1", "v2","v3"]" as single signal instead of 3 different signals.


Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions