User Tools

Site Tools


java:set-proxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
java:set-proxy [2010/04/27 01:25] – external edit 127.0.0.1java:set-proxy [2016/05/05 13:07] (current) – external edit 127.0.0.1
Line 8: Line 8:
 System.getProperties().put("proxyHost", "172.31.170.14"); System.getProperties().put("proxyHost", "172.31.170.14");
 System.getProperties().put("proxyPort", "8080"); System.getProperties().put("proxyPort", "8080");
 +</code>
 +如果上面的不行,用下面这段:
 +<code java>
 +System.getProperties().setProperty("http.proxyHost", Const.proxyHost);
 +System.getProperties().setProperty("http.proxyPort", ""+Const.proxyPort);
 </code> </code>
  
/var/www/dokuwiki/wiki/data/attic/java/set-proxy.1272302735.txt.gz · Last modified: 2016/05/05 13:06 (external edit)