JAX-WS 的注释端点位置
确实存在一个特定的注释来定义端点的地址。 其实我想把SPring文件中的属性地址去掉,直接把注释移到impl中。班级。
当前:
jaxws:endpoint id="dataManagerEndPoint"implementor="#dataManagerService"address="/datamanager/v1.0"
@WebService 公共接口 DataManagerService
我想更改为(如果可能)...
jaxws:endpoint id="dataManagerEndPoint"implementor="#dataManagerService"
@WebService @EndPointAddress(“/datamanager/v1.0”) 公共接口 DataManagerService
提前非常感谢, 克里斯托夫·P.
does exist a specific annotation to define the address of the endpoint.
In fact, I want to remove the attribute address in the SPring file and move the annotation directly in the impl. class.
Current:
jaxws:endpoint id="dataManagerEndPoint" implementor="#dataManagerService" address="/datamanager/v1.0"
@WebService
public interface DataManagerService
I would like to change to (if possible) ...
jaxws:endpoint id="dataManagerEndPoint" implementor="#dataManagerService"
@WebService
@EndPointAddress ("/datamanager/v1.0")
public interface DataManagerService
Many thanks, in advance,
Christophe P.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)