89.7. JSONPath 注入download PDF 您可以使用 Bean 集成 在 bean 上调用方法,并使用 JSONPath (通过 @JsonPath 注解)从消息中提取值并将其绑定到方法参数,如下所示: public class Foo { @Consume("activemq:queue:books.new") public void doSomething(@JsonPath("$.store.book[*].author") String author, @Body String json) { // process the inbound message here } }前一个下一个