我正在使用Spring创建一个小型微服务项目,该项目由2个应用程序、一个客户服务和一个订单服务组成。graphql端点,其中一个用于通过使用WebClient调用我的订单服务应用程序公开的端点来获取客户订单:public class CustomerController {uri("/api/v1/orders?因为客户类型有一个订单列表字段,而我的订单服务正在返回一个Flux。我认为这
我试图使用Spring WebFlux WebClient从openweathermap中检索数据。我使用RestTemplate做了这件事没有问题,但我想了解正确的方法。我试图以以下方式来做这件事:public class WeatherService {
private final WebClientwebClient;
public WeatherSer