ecplise 科学上网

而一般的Web Service程序, 需要访问网络资源, 此时设置的代理是使得JAVA VM通过代理访问,设置方式是:

Run-->Run...-->(x=)Argument下面的VM Arguments下设置:

-Dhttp.proxyHost=[代理IP地址] [空格] -Dhttp.proxyPort=[端口]

注:[]不需要加,如一个具体的实例如下:

        -Dhttp.proxyHost=202.189.126.86  -Dhttp.proxyPort=3128

    -Dhttps.proxyHost=202.189.126.86  -Dhttps.proxyPort=3128

猜你喜欢

转载自blog.csdn.net/hjm4702192/article/details/80220062