OkHttpClient官网:
http://square.github.io/okhttp/
OkHttp GitHub地址:https://github.com/square/okhttp
首先导入maven依赖:
<dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.6.0</version> </dependency>
具体的代码实现:
public class OkHttpUtil { public static boolean