Apache camel 用驼峰连接沙发座
我正试图通过以下java中的customroute配置连接到couchbaseApache camel 用驼峰连接沙发座,apache-camel,couchbase,Apache Camel,Couchbase,我正试图通过以下java中的customroute配置连接到couchbase from("cxfrs://bean://rsServer") .choice() .when(header("operationName").isEqualTo("getCity")) .setHeader(CouchbaseConstants.H
from("cxfrs://bean://rsServer")
.choice()
.when(header("operationName").isEqualTo("getCity"))
.setHeader(CouchbaseConstants.HEADER_ID,constant("#"))
.to("couchbase:http://"couchbase-ip"/Hotels?operation='GET'")
.end()
.marshal().json(JsonLibrary.Jackson);
我想为我的rest服务提供路径参数作为文档id,以便从couchbase检索。问题是返回的输出是我的路径参数的Arraylist。由于Couchbase可能返回多个结果行,因此结果是列表是合理的,不是吗?您可以添加日志以查看Couchbase是否返回响应。