在Apache Camel的Blueprint(XML DSL)中,确实不允许直接在路由中使用PATCH方法。然而,你可以采取以下解决方法来使用PATCH方法:
from("direct:start")
.setHeader(Exchange.HTTP_METHOD, constant("PATCH"))
.to("http://example.com/api/resource")
.to("mock:result");
PATCH
以上两种方法允许你在Apache Camel的Blueprint(XML DSL)中使用PATCH方法来处理请求。选择适合你的需求的方法,并根据需要进行相应的配置。