Closed sxshunrj closed 1 year ago
com.wechat.pay.java.core.http.HttpClient接口并没有close方法,代码如下:
Config config = new RSAConfig.Builder() .merchantId(merchantId) .privateKeyFromPath(privateKeyPath) .merchantSerialNumber(merchantSerialNumber) .wechatPayCertificatesFromPath(wechatPayCertificatePath) .build();
HttpClient httpClient = new DefaultHttpClientBuilder() .readTimeoutMs(3000) .writeTimeoutMs(3000) .connectTimeoutMs(3000) .credential(requireNonNull(config.createCredential())) .validator(requireNonNull(config.createValidator())) .build();
你用的是 wechatpay-java,请到对应的repo提issue。
wechatpay-java
wechatpay-java 和 wechatpay-apache-httpclient 两者只要用一个就行了。
wechatpay-apache-httpclient
com.wechat.pay.java.core.http.HttpClient接口并没有close方法,代码如下:
Config config = new RSAConfig.Builder() .merchantId(merchantId) .privateKeyFromPath(privateKeyPath) .merchantSerialNumber(merchantSerialNumber) .wechatPayCertificatesFromPath(wechatPayCertificatePath) .build();
HttpClient httpClient = new DefaultHttpClientBuilder() .readTimeoutMs(3000) .writeTimeoutMs(3000) .connectTimeoutMs(3000) .credential(requireNonNull(config.createCredential())) .validator(requireNonNull(config.createValidator())) .build();