新浪微博 Github

在Java程序中设置代理

Run as --> Run configuration:

 

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

比如:

-Dhttp.proxyHost=10.56.2.3 -Dhttp.proxyPort=8080

 

posted @ 2012-07-12 11:21  xiazdong  阅读(241)  评论(0编辑  收藏  举报