java代码利用代理访问api

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、访问成功在这里插入图片描述

发布了7 篇原创文章 · 获赞 1 · 访问量 2809

猜你喜欢

转载自blog.csdn.net/wangxq0224/article/details/91379751