springmvc 返回结果的转换xml

xml
Jaxb2RootElementHttpMessageConverter
返回结果对象中加上注解
@XmlRootElement
以及@XmlSeeAlso(泛型中需要的类)
才不会报
。。。。nor any of its super class is known to this contex的错

猜你喜欢

转载自zhangchengtest.iteye.com/blog/2207046