读书人

cxf-webservice异常收集整理

发布时间: 2013-07-16 22:38:04 作者: rapoo

cxf-webservice错误收集整理

①找不到类

class org.bgi.health.dto.HospitalDto nor any of its super class is known to this context.

网上找了很久,有的需要 加上泛型说明,比如List a = new ArrayList();

这种改写成 List<HospitalDto> a = new ArrayList<HospitalDto>();

最后上 stackOverFlow,找到一种办法,在我的page类上面加了

@XmlSeeAlso(value = { org.bgi.health.dto.HospitalDto.class,org.bgi.health.domain.EnteringAntenatalSample.class})之后一切搞定

读书人网 >Web前端

热点推荐