WXPay 实例化配置config参数对象,报错
Payconfig extends WXPayConfig 继承类 实例化 Payconfig m2=new Payconfig(); WXPay wxPay = new WXPay(m2); //给支付类配置对象 直接包初始化错误 Servlet.service() for servlet [jsp] in context with path [/goods] threw exception [javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/http/conn/ConnectTimeoutException] with root cause java.lang.ClassNotFoundException: org.apache.http.conn.ConnectTimeoutException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547) at com.lean.ChatServer.WXPay.<init>(WXPay.java:51) at com.lean.ChatServer.WXPay.<init>(WXPay.java:19)