【发布时间】:2019-12-30 12:48:09
【问题描述】:
我正在尝试向我的骆驼休息路线添加授权标头。路线如下:
restConfiguration().producerComponent("http4").host(env.getProperty("my.rest.host"));
from(env.getProperty("in.route"))
.to(env.getProperty("rest.endpoint.path"))
我熟悉“非骆驼”程序,例如使用 RestTemplate,您可以在其中执行 setHeader("Authorisation", "Bearer myJWT...") 之类的操作。我原以为骆驼也会有同样简单的东西。但是我的搜索到目前为止还没有成功!谁能给个提示?
谢谢:)
【问题讨论】:
标签: java apache-camel jwt authorization token