Örnek
Şöyle yaparız
public Flux<Incidence> findAllFlux() {Flux<Incidence> lstPre1 = WebClient.create("...").get().retrieve().bodyToFlux(Incidence.class);Flux<Incidence> lstPre2 = WebClient.create("...").get().retrieve().bodyToFlux(Incidence.class);Flux<Incidence> lstPro1 = WebClient.create("...").get().retrieve().bodyToFlux(Incidence.class);Flux<Incidence> lstPro2 = WebClient.create("...").get().retrieve().bodyToFlux(Incidence.class);return Flux.merge(lstPre1, lstPre2, lstPro1, lstPro2);}
Hiç yorum yok:
Yorum Gönder