我已经使用spring WebFlux定义了功能性的Web休息api(GET),从我的WebClientTest可以正常工作
我有apache骆驼路线,该路线具有读取文件内容并将该数据发送到上述REST API的工作路线,例如
.routeId("fromFileToRest”)
.log("consume customer route started")
.setHeader(Exchange.HTTP_METHOD, simple("GET"))
.fromRest()
.to(“http://localhost:8080/customer”).log(“sent consumer data to get api”); ```
But in this camel route, I want to replace hardcoded url in to() with the WebFlux functional api router/handler call, so that when there is a change in uri, this route is not impacted. Could you please suggest how to
答案 0 :(得分:0)
是否可以在使用HttpClient在prop文件中使用可配置的url调用下游的路由中添加骆驼处理器?