java下设置全局代理

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012400305/article/details/56290356
System.setProperty("java.net.useSystemProxies", "true");
    	 System.setProperty("http.proxyHost", "127.0.0.1");  
    	    System.setProperty("http.proxyPort", "2022");  

猜你喜欢

转载自blog.csdn.net/u012400305/article/details/56290356
今日推荐