首页 文章

Camel:在DSL中使用EL的动态休息uri路径不可能吗?

提问于
浏览
0

我是骆驼的新手,并将其用于Spring DSL与camel servlet配置的http路由 . 不幸的是,这样的“to”路由不起作用:

<to uri="https://host/path/${headers.pname1}/2016/11?bridgeEndpoint=true"/>

其中$ 是来自servlet上http输入的http查询字符串参数 .

如何在uri路径中使用表达式语言?

1 回答

  • 1

    根据Claus Ibsen的评论,

    使用额外的标签“toD”而不是“to”:

    <toD uri="https://host/path/${headers.pname1}/2016/11?bridgeEndpoint=true"/>
    

    出于性能原因,他们可能会制作第二个标签 .

相关问题