Registrer MappingJackson2HttpMessageConverter in Spring 3.1.2 with JAXB annotations Registrer MappingJackson2HttpMessageConverter in Spring 3.1.2 with JAXB annotations json json

Registrer MappingJackson2HttpMessageConverter in Spring 3.1.2 with JAXB annotations


I replicated your configuration and it works perfectly for me. The default message converters should not take effect, as you have explicitly specified the register-defaults=false attribute. This is how my @XmlTransient annotation looks:

@XmlAccessorType(XmlAccessType.FIELD)public class EntityWithJAXB {    @XmlTransient    private EntityWithJAXB aChild;