问题 I have this @XmlRootElement class Person. @XmlRootElement class Person { private String desc; } and the return content is {"Person": {"desc": "abc"} } and I really don't want the root wrapper, so I want the content to looks like {"desc": "abc"} Can I accomplish this via JaxB? If so, how? Thanks! 回答1: JAXB is an API for XML, not JSON. However, there are some JSON libraries (at least Jackson) which can utilize JAXB annotations. I don't know which one you are using, so I don't know exactly how