在项目中遇到一个问题,需要请求多个地址并将结果收集起来,借助WebClient实现了这个功能。主要思路是通过WebClient创建多个Mono,然后通过Flux.merge()方法将List<Mono<String>>
2022-09-24