简单的API调用OKhttp3库 POST表单数据
这里写自定义目录标题
okhttp3库不仅可以请求网页 ,API,也可请求图片。excel文件
1.安装okhttpp3库 其方式是在pom.xml文件中增加依赖
以下为固定代码
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId
原创
2020-07-10 19:55:25 ·
613 阅读 ·
0 评论