1
0
mirror of synced 2025-12-16 20:28:11 +08:00

🎨 #1549 微信支付证书读取代码优化,支持读取打进jar包里的证书文件

This commit is contained in:
Binary Wang
2020-05-12 19:42:33 +08:00
parent 189669c20c
commit 7ee277219e

View File

@@ -145,7 +145,7 @@ public class WxPayConfig {
if (!path.startsWith("/")) {
path = "/" + path;
}
inputStream = WxPayConfig.class.getResourceAsStream(path);
inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
if (inputStream == null) {
throw new WxPayException(fileNotFoundMsg);
}