commons-httpclient 和 httpclient 区别

今天在看项目的pom的时候,发现里面有这么两个包依赖。

<dependency>
    <groupId>commons-httpclient</groupId>
     <artifactId>commons-httpclient</artifactId>
     <version>3.1</version>
</dependency>
<dependency>
       <groupId>org.apache.httpcomponents</groupId>    
<artifactId>httpclient</artifactId> <version>4.5.2</version> </dependency>

发现项目里面用到它们的地方也差不多,都是用来处理http请求。去查阅发现,这两个包在同一个官网上面都可以找到。

Commons Httpclient这个项目不再进一步完善了,它已经被Httpclient项目的两个子模块HttpClient和HttpCore所取代了,后者在持续更新和完善中。最后,对于新开的项目,还是使用httpclient吧。

33333333333333333

原文地址:https://www.cnblogs.com/zouhong/p/12061042.html