【Spring】远程调用HttpClient/RestTemplate
一、HttpClient
两个系统间如何互相访问?两个tomcat上的项目如何互相访问?
采用HttpClient实现跨系统的接口调用。
介绍:
官网:http://hc.apache.org/index.html
现在也叫:HttpComponents
HttpClient可以发送get、post、put、delete、...等请求
使用:
导入坐标
<dependency>
<groupId>org.apache.httpcompon...
原创
2021-03-05 13:50:10 ·
230 阅读 ·
4 评论