一. 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>