Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ApacheCamel使用ApacheCamel提供的SpringWebFlux函数式WebRESTAPI_Java_Spring Boot_Apache Camel_Spring Webflux - Fatal编程技术网

Java ApacheCamel使用ApacheCamel提供的SpringWebFlux函数式WebRESTAPI

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")

我已经使用SpringWebFlux定义了一个功能性WebRESTAPI(GET),它在我的WebClient上运行良好

我有一个apachecamel路由,它有一个工作路由来读取文件内容并将数据发送到上面的restapi,如

        .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路由器/处理器替换到(“”)。如果有办法,请告诉我,谢谢