跳至主要內容
JDK 接口调用

Java 远程接口调用方式

应用: 三方调用、爬虫(jsoup)


原生

  • HttpURLConnection

三方工具

  • okhttp —— android 用的多 | retrofit
  • httpclient
  • resttemplate —— Spring 封装的接口调用,底层调用 httpclient

HttpURLConnection 使用

HttpClient 使用

https://hc.apache.org


Steven2024年9月12日小于 1 分钟rpc