开发者

weblogic java parameters

开发者 https://www.devze.com 2023-02-18 22:27 出处:网络
I have a web service which access 2 other web services. I need开发者_如何学Python to deploy this web service but some how I need to change the urls from the others web wervices, later.

I have a web service which access 2 other web services. I need开发者_如何学Python to deploy this web service but some how I need to change the urls from the others web wervices, later. My question is, how can I do to pass parameters to a web service at any time. Maybe a config file, or something. In .net we have web.config, do we have this in java?

kind regards, José Cruz


Java uses property files for runtime configuration to allow for changes after deployment. Basically it's a text file with a list of key value pairs that Java can read easily and put into a HashMap which can be accessed by the user.

http://www.exampledepot.com/egs/java.util/Props.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号