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

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

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744664722a4586674.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信