Spring cxf客户端配置

时间:2012-01-25 16:06:36

标签: web-services spring cxf

我正在使用Spring 3.0创建一个cxf Web服务客户端,它运行良好,但我想改进配置。客户端声明如下:

 <jaxws:client id="myClient"
          serviceClass="package.myClass"
          address="http://localhost:8181/services/MyEndpoint?wsdl" />

我需要注入地址属性,我的意思是,它在xml文件中是硬编码的,但我想将它声明为属性文件。我怎样才能做到这一点?那个地址可以改变。

感谢。

1 个答案:

答案 0 :(得分:0)

使用属性占位符。见4.8.2.1 the PropertyPlaceholderConfigurer

相关问题