虽然编组jaxb对象我遇到异常,有人可以帮忙吗?我甚至没有在我的jaxb对象中使用LinkedHashMap。
抛出异常
com.sun.istack.internal.SAXException2:类java.util.LinkedHashMap,也不知道它的任何超类。 javax.xml.bind.JAXBException:类java.util.LinkedHashMap或其任何超类都为此上下文所知。] at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.write(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.marshal(Unknown Source) 在org.springframework.oxm.jaxb.Jaxb2Marshaller.marshal(Jaxb2Marshaller.java:662) ......还有49个 引起:com.sun.istack.internal.SAXException2:类java.util.LinkedHashMap或其任何超类都为此上下文所知。 javax.xml.bind.JAXBException:类java.util.LinkedHashMap或其任何超类都是此上下文已知的。 at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.reportError(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.reportError(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.property.ArrayERProperty.serializeBody(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsSoleContent(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(Unknown Source) at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsRoot(Unknown Source) ... 52更多