【发布时间】:2013-08-29 11:28:22
【问题描述】:
我正在使用 CXF 中的注释方法通过 Web 服务调用创建不同的功能。出于某种原因,我所有的 URL 路径都来自{hostname}/services/status/{my_path}。我正在使用这样的注释方法:
@Path("/{type:(?i)index}")
public IndexServiceResource getIndexServiceResource() {
return new IndexServiceResource(this.handlers);
}
我希望@Path 直接来自{hostname} 而不是{hostname}/services/status。这将设置在哪里?
【问题讨论】:
标签: java web-services jax-ws cxf jax-rs