1.客户端为空,调试时出现如下:
解决方法:需要添加okhttp3的依赖
<!-- okhttp3依赖配置-->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.8.1</version>
</dependency>
配置方法:可以在官网上查看:
com.squareup.okhttp3
okhttp
3.8.1
https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp