commons-httpclient 和 httpclient 区别

    技术2023-08-13  83

    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>

     

     

    httpclient依赖

     

    Commons Httpclient依赖

     

    发现项目里面用到它们的地方也差不多,都是用来处理http请求

    这两个包在manen仓库上面都可以找到。

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

    Processed: 0.008, SQL: 9