File tree Expand file tree Collapse file tree
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616import org .apache .http .ssl .SSLContexts ;
1717
1818import javax .net .ssl .SSLContext ;
19- import java .io .ByteArrayInputStream ;
20- import java .io .File ;
21- import java .io .IOException ;
22- import java .io .InputStream ;
19+ import java .io .*;
2320import java .net .URL ;
2421import java .nio .charset .StandardCharsets ;
2522import java .nio .file .Files ;
@@ -385,7 +382,8 @@ private InputStream loadConfigInputStream(String configPath) throws WxPayExcepti
385382 throw new WxPayException (fileNotFoundMsg );
386383 }
387384
388- return Files .newInputStream (file .toPath ());
385+ // return Files.newInputStream(file.toPath());
386+ return new FileInputStream (file );
389387 } catch (IOException e ) {
390388 throw new WxPayException (fileHasProblemMsg , e );
391389 }
You can’t perform that action at this time.
0 commit comments