【发布时间】:2014-12-11 07:52:16
【问题描述】:
我想使用 groovy 脚本,但我想通过使用标头中的值生成属性 location
我怎样才能做到这一点?
location="#{scriptService.getScriptLoacation(#headers['location'])}"
【问题讨论】:
标签: spring-integration spring-el
我想使用 groovy 脚本,但我想通过使用标头中的值生成属性 location
我怎样才能做到这一点?
location="#{scriptService.getScriptLoacation(#headers['location'])}"
【问题讨论】:
标签: spring-integration spring-el
我猜你的意思是在 Spring Integration 应用程序中。
您目前不能这样做; location 是固定资源。
如果您可以提供更多上下文(例如您在消息中使用脚本的目的),我们或许可以提出替代方案。
【讨论】: