阅读背景:

如何正确使用Jackson的JaxbAnnotationIntrospector ?

来源:互联网 

I'm able to generate the XML I want using @JacksonXmlProperty annotations with the default mapper configuration. But my classes are generated by maven-jaxb2-plugin and already have the @XmlAttribute annotations. When I try using the JaxbAnnotationIntrospector it serializes the attributes as child elements. What am I doing wrong?I'm able to generate the XML I want using @Jack




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: