当前位置: 代码迷 >> Web前端 >> cxf-webservice异常收集整理
  详细解决方案

cxf-webservice异常收集整理

热度:377   发布时间:2013-07-16 22:38:04.0
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})之后一切搞定

  相关解决方案