参考教程:
https://blog.csdn.net/chengqiuming/article/details/80805667
报错:
nested exception is java.lang.NoClassDefFoundError: okhttp3/ConnectionPool"
解决:
在pom.xml中添加依赖
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>1.11.0</version>
</dependency>
参考下面大佬的方法二添加的jar包:
https://blog.csdn.net/qq_35661171/article/details/84567468
okhttp-3.10.0.jar链接
http://www.xpgod.com/soft/44011.html