我是骆驼的新手,并将其用于Spring DSL与camel servlet配置的http路由 . 不幸的是,这样的“to”路由不起作用:
<to uri="https://host/path/${headers.pname1}/2016/11?bridgeEndpoint=true"/>
其中$ 是来自servlet上http输入的http查询字符串参数 .
如何在uri路径中使用表达式语言?
根据Claus Ibsen的评论,
使用额外的标签“toD”而不是“to”:
<toD uri="https://host/path/${headers.pname1}/2016/11?bridgeEndpoint=true"/>
出于性能原因,他们可能会制作第二个标签 .
1 回答
根据Claus Ibsen的评论,
使用额外的标签“toD”而不是“to”:
出于性能原因,他们可能会制作第二个标签 .