尝试使用 spring 中的 webClient 发送 post 请求中的字符串列表

Trying to Send list of string in post request using webClient in spring

您不能发送 Flux 个字符串,因为它会将它们组合成一个字符串。看,

WebClient bodyToFlux(String.class) for string list doesn't separate individual value

您正在 Flux.fromIterable(str) 创建 Flux 个字符串。您需要做的是将字符串放入包装器 class 或发送列表的 Mono。参见,例如,Reactive Programming:Spring WebFlux:如何构建 micro-service 调用链?