68.7. JSONPath 주입
빈 에서 메서드를 호출하고 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
}
}