使用OKHTTP
2019-07-30 本文已影响0人
Share_joy
1.打开OKHTTP官网https://square.github.io/okhttp/
2.此次想获取GIT第三方登录返回的code,所以使用OKHTTP中的POST方法
3.导入JAR包依赖,使用maven的话,直接导入即可。
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.0.1</version>
</dependency>