【发布时间】:2019-11-21 09:14:43
【问题描述】:
我已经使用 spring WebFlux 定义了一个功能性 web rest api (GET),它在我的 WebClientTest 中运行良好
我有 apache camel 路由,它有一个工作路由来读取文件内容并将该数据发送到上面的 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
【问题讨论】:
标签: java spring-boot apache-camel spring-webflux