在需要使用代理的地方添加如下code:
System.getProperties().put("socksProxySet","true");
System.getProperties().put("socksProxyHost","localhost");
System.getProperties().put("socksProxyPort","7575");
在需要使用代理的地方添加如下code:
System.getProperties().put("socksProxySet","true");
System.getProperties().put("socksProxyHost","localhost");
System.getProperties().put("socksProxyPort","7575");
相关文章: