We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 189669c commit 7ee2772Copy full SHA for 7ee2772
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
@@ -145,7 +145,7 @@ public SSLContext initSSLContext() throws WxPayException {
145
if (!path.startsWith("/")) {
146
path = "/" + path;
147
}
148
- inputStream = WxPayConfig.class.getResourceAsStream(path);
+ inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
149
if (inputStream == null) {
150
throw new WxPayException(fileNotFoundMsg);
151
0 commit comments