最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

apache camel - How to use Multiple rest() Definitions to the Same direct: Route - Stack Overflow

programmeradmin2浏览0评论

i need to link multiple rest paths to the same direct:route. but i am always getting the error for duplicates:

Caused by: java.lang.IllegalArgumentException: Duplicate to in rest-dsl

rest("/rest1").id("route1").get("/").to("direct:dynamicRouter"); 

rest("/rest2").id("route2").get("/").to("direct:dynamicRouter");

from("direct:dynamicRouter")

How can i achieve that goal?

This error popped up when i switched to a newer apache-camle version. now i am using: <camel.version>4.9.0</camel.version>

I just need a Solution: Use Multiple rest() Definitions to the Same direct: Route

发布评论

评论列表(0)

  1. 暂无评论