@JsonFilter throws “JsonMappingException: Can not resolve BeanPropertyFilter”
问题 Is it possible to selectively determine when the @JsonFilter annotation gets used at runtime? I'm getting JsonMappingException exception (see below) when I don't provide the filter. Background: I learned from a recent StackOverflow post that I can use @JsonFilter to dynamically filter the bean properties getting serialized. This works great. After adding @JsonFilter("apiFilter") to my domain class and with the addition of this code in my jax-rs service (using the CXF implementation), I am