springboot将httpClient封装为支持get、post(json)、put请求的方法
发布时间
阅读量:
阅读量
以下为pom.xml文件中的依赖配置
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.75</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.jayway.jsonpat
全部评论 (0)
还没有任何评论哟~
