用fiddler抓包工具对Java代码中接口远程调用抓包

//fiddler抓包设置代理
        Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1",
                8888));
        OkHttpClient client = new OkHttpClient().newBuilder().proxy(proxy).build();

8888为fiddler默认端口。

你可能感兴趣的:(后端小点)