一. java.lang.ClassNotFoundException: org.apache.http.util.Args 和java.lang.ClassNotFoundException: org.apache.http.util.Args
在测试短信验证码发送时遇到了如上两个错误,在Stack Overflow上搜索了一番,只要在maven多模块父工程里导如下两个依赖坐标就可以解决!
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4</version>
</dependency>