## 工具类介绍
>httpclient实现的工具类含有以下功能
- 后台模拟发送GET请求
- 后台模拟发送POST请求
- 解决了中文乱码
## 工具类依赖的JAR
```
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.8</version>
</dependency>
```
后台模拟发送GET和POST请求
需积分: 28 192 浏览量
2018-12-28
20:20:16
上传
评论
收藏 2KB RAR 举报
天明少侠
- 粉丝: 68
- 资源: 4