错误:java.util.Map is an interface, and JAXB can't handle interfaces.

问题:

在整合spring+cxf时报错java.util.Map is an interface, and JAXB can't handle interfaces.

解决方法:

将服务端的services接口返回的Map类型的值改为HashMap. 
因为在做webService复杂类型值传递时,返回值的类型不要用接口类型。例如List应该改为ArrayList,Map改为HashMap等。

posted @ 2016-10-20 10:00  Revel  阅读(597)  评论(0)    收藏  举报