xml
Jaxb2RootElementHttpMessageConverter
返回结果对象中加上注解
@XmlRootElement
以及@XmlSeeAlso(泛型中需要的类)
才不会报
。。。。nor any of its super class is known to this contex的错
Jaxb2RootElementHttpMessageConverter
返回结果对象中加上注解
@XmlRootElement
以及@XmlSeeAlso(泛型中需要的类)
才不会报
。。。。nor any of its super class is known to this contex的错
本文解决使用XML JAX-B进行转换时遇到的nor any of its superclasses is known to this context错误。通过在结果对象上添加@javax.xml.bind.annotation.XmlRootElement和@javax.xml.bind.annotation.XmlSeeAlso注解,可以确保转换过程顺利进行。
959

被折叠的 条评论
为什么被折叠?



