objectMapper
.disable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
AnnotationIntrospector jackson = new JacksonAnnotationIntrospector();
AnnotationIntrospector jaxb = new JaxbAnnotationIntrospector(objectMapper.getTypeFactory());
AnnotationIntrospector pair = new AnnotationIntrospectorPair(jaxb, jackson);
objectMapper.getSerializationConfig().with(pair);
objectMapper.getDeserializationConfig().with(pair);