【发布时间】:2018-05-27 03:25:57
【问题描述】:
我正在尝试获取 jax-ws javax.xml.ws.WebServiceContext。我可以通过这种方式在我的 Web 服务中做到这一点:
@WebService
public class Service extends BaseService {
@Resource
WebServiceContext wsContext;
@WebMethod
public responseExample example(....) {...}
}
我想在我的代码中的任何其他地方获取这个 bean。如果我使用弹簧,它会工作吗?
【问题讨论】:
标签: java spring jakarta-ee jax-ws