1、在启动设置里加上
-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=1080 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=1080
2、Shadowsocks要配置好,并启动
3、有些网页Shadowsocks无法穿墙,自由门可以。但是自由门无法让代码翻墙,Shadowsocks可以。。。
4、访问成功
java代码利用代理访问api
猜你喜欢
转载自blog.csdn.net/wangxq0224/article/details/91379751
今日推荐
周排行