Java ApacheCamel使用ApacheCamel提供的SpringWebFlux函数式WebRESTAPI
我已经使用SpringWebFlux定义了一个功能性WebRESTAPI(GET),它在我的WebClient上运行良好 我有一个apachecamel路由,它有一个工作路由来读取文件内容并将数据发送到上面的restapi,如Java ApacheCamel使用ApacheCamel提供的SpringWebFlux函数式WebRESTAPI,java,spring-boot,apache-camel,spring-webflux,Java,Spring Boot,Apache Camel,Spring Webflux,我已经使用SpringWebFlux定义了一个功能性WebRESTAPI(GET),它在我的WebClient上运行良好 我有一个apachecamel路由,它有一个工作路由来读取文件内容并将数据发送到上面的restapi,如 .routeId("fromFileToRest”) .log("consume customer route started") .setHeader(Exchange.HTTP_METHOD, simple("GET")
.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
可以在使用HttpClient在prop文件中使用可配置url调用下游的路由中添加骆驼处理器吗?可以在使用HttpClient在prop文件中使用可配置url调用下游的路由中添加骆驼处理器吗?谢谢,但这是调用api端点的下一步。我希望用相关的Webflux路由器/处理器替换到(“”)。请告诉我是否有办法,谢谢Hanks Jacob,但这是调用api端点的下一步。我希望用相关的Webflux路由器/处理器替换到(“”)。如果有办法,请告诉我,谢谢