How to await when all http requests are finished using spring webClient?
问题 I want to execute http request for each queue element. These requests shoule be called in parallel. Also I need to await the termination of all requests. I developed the following code: List<Mono<MyResponseDTO>> monoList = queue.stream() .map(jobStatusBunch -> webClient .post() .uri("localhost:8080/api/some/url") .bodyValue(convertToRequestDto(someBean)) .retrieve() .toEntity(String.class) .filter(HttpEntity::hasBody) .map(stringResponseEntity -> { try { return objectMapper.readValue