<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>
官网解释:Commons Httpclient这个项目不再进一步完善了,它已经被Httpclient项目的两个子模块HttpClient和HttpCore所取代了,后者在持续更新和完善中