嗨,我想使用我的骆驼交换中的标头值作为我的 JsonPath 表达式中的过滤条件。
有这样的想法:
.setBody().jsonpath("$.person[?(@.role=='${headers.role}')]")
简单的表达式不会以这种方式解析。
如何使用 Apache Camel 完成此操作?
apache-camel jsonpath
apache-camel ×1
jsonpath ×1