0
我有几个基于Spring的应用程序 - Web,Web服务春天 - 如何让应用程序读取环境变量从属性文件
对于我的网络服务项目,在我的WS-config.xml文件中,我指定的位置的wsdl。这在过去被设置为localhost,但我现在需要将它作为属性文件中的可配置值(如果可以的话)。
<ws:dynamic-wsdl id="ServiceDefinition"
portTypeName="Test" locationUri="http://localhost/Test/webservice">
<ws:xsd location="/WEB-INF/schemas/my-test.xsd" />
</ws:dynamic-wsdl>
我需要能够引用locationUri作为属性,但我不知道该怎么做?
任何人都可以帮忙吗?
更新了古代的链接。 –