java 设置代理IP

来源:互联网 发布:fs2you下载器 mac 编辑:程序博客网 时间:2024/05/01 05:18
   public static void main(String[] args) {        System.setProperty("http.maxRedirects", "50");        System.getProperties().setProperty("proxySet", "true");        String ip = "xxx.xxx.xxx.xxx";        String port="xxxx";        System.getProperties().setProperty("http.proxyHost", ip);        System.getProperties().setProperty("http.proxyPort", port);    }
0 0
原创粉丝点击