68.7. JSonPath injection 您可以使用 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 } } 前一个下一个