今天在用cxf发布webservice的时候,因为在接口方法上用了WebMethod(exclude=true),然后一直报错。之前也是这样发布的,却没有问题。在stackoverflow上查了一下原因,竟然是因为cxf3.05不允许在接口方法上写WebMethod(exclude=true)注解,我之前用的版本比较旧可以这么写,应该把注解写在它的实现方法上。如此改了一下,问题得到了解决。
The @javax.jws.WebMethod(exclude=true) cannot be used on a service endpoint interface.
最新推荐文章于 2023-09-24 08:30:00 发布