apache-camel - 如何使用 Camel toD 和 netty4-http 组件?动态url优化问题
问题描述
我使用 Camel(2.23) 动态路由 toD()。我在 toD() 中传递 url "netty4-http:${property.url}" where url = " http://abc.server.net:8888/service/v3 " t.ex。在 expression.evaluate [:112] 上的 SendDynamicProcessor.process() 之后,原始 url 转换为“netty4-http:http:ab:8888/path”。在源代码中,我看到发生转换的行,但我看不出任何原因。任何的想法?
如何使用 netty4-http 组件和动态 url 发送请求?
解决方案
我已经记录了问题CAMEL-13524。作为一种解决方法,替换toD
为recipientList
.
.recipientList(simple("netty4-http:${property.url}"))
推荐阅读
- css - CSS 媒体查询 - 错误还是什么?
- javascript - 在 iFrame 中滚动的 WebRTC
- python-3.x - Python 中的 Reddit 和 Twitter bot 使用 PRAW
- javascript - 如何在导出默认值中调用函数内部的另一个函数?
- spring-boot - SunCertPathBuilderException:无法找到请求目标的有效认证路径,但问题不同
- java - 如何在android studio中用户输入时从sharedPreferences中删除某些字符串
- python - python sounddevice - 如何播放我同时录制的一段音频?
- c# - 如何从 ASP.NET Core 表单中获取嵌套字段?
- reactjs - 浏览器前进按钮在 React.js 中无效
- mysql - 异步等待递归在 MySQL 查询完成之前过早执行