设置上网代理服务器

System.getProperties().put("proxySet","true");
System.getProperties().put("http.proxyHost","192.168.0.1");

System.getProperties().put("http.proxyPort","3228");

原文地址:https://www.cnblogs.com/liuzhengdao/p/1658578.html