java 程序中添加socks 5代理

在需要使用代理的地方添加如下code:

System.getProperties().put("socksProxySet","true"); 
System.getProperties().put("socksProxyHost","localhost"); 
System.getProperties().put("socksProxyPort","7575");
原文地址:https://www.cnblogs.com/dorothychai/p/4095772.html