zoukankan      html  css  js  c++  java
  • Spring + JAX-WS : ‘xxx’ is an interface, and JAXB can’t handle interfaces 错误解决方法

    • 错误栈
    Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
    demo.order.dao.ParamDao is an interface, and JAXB can't handle interfaces.
    this problem is related to the following location:
    at demo.order.dao.ParamDao
    at private demo.order.dao.ParamDao demo.jaxrs.server.jaxws_asm.SetParamDao.arg0
    at demo.jaxrs.server.jaxws_asm.SetParamDao
    demo.order.dao.ParamDao does not have a no-arg default constructor.
    this problem is related to the following location:
    at demo.order.dao.ParamDao ....
    
    • 解决方法:标记该方法为非web method
    private ParamDao paramDao;
    
    @WebMethod(exclude = true)
    public void setParamDao(ParamDao paramDao) {
    this.paramDao = paramDao;
    }
    
    定位问题原因* 根据原因思考问题解决方案* 实践验证方案有效性* 提交验证结果
  • 相关阅读:
    Light OJ 1067 Combinations (乘法逆元)
    hdu1172猜数字(暴力枚举)
    hdu 2266 How Many Equations Can You Find(DFS)
    项目之问卷调查问题
    Django之Modelform组件
    GIT
    form组件的总结
    总结django知识点
    djang-分页
    Django-Ajax
  • 原文地址:https://www.cnblogs.com/jimoliunian/p/13725328.html
Copyright © 2011-2022 走看看