We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PemUtil.loadPrivateKey好歹接受一个文件流啊
为什么私钥路径一定要是绝对路径,多个项目成员如何管理这个路径
Linux
JAVA 8
0.2.12
The text was updated successfully, but these errors were encountered:
ClassPathResource classPathResource = new ClassPathResource("privateKeyPath"); String privateKeyString = new BufferedReader(new InputStreamReader(classPathResource.getInputStream())) .lines().collect(Collectors.joining(System.lineSeparator())); PrivateKey privateKey = PemUtil.loadPrivateKeyFromString(privateKeyString); RSAAutoCertificateConfig config = new RSAAutoCertificateConfig.Builder() .merchantId(merchantId) .privateKey(privateKey) .merchantSerialNumber(merchantSerialNumber) .apiV3Key(apiV3Key) .build();
我用Spring的ClassPathResource读取的文件流。感觉微信支付写SDK或者设计接口的都不会用自己做出来的东西……🍐🎼
Sorry, something went wrong.
No branches or pull requests
错误描述
PemUtil.loadPrivateKey好歹接受一个文件流啊
重现bug的步骤
为什么私钥路径一定要是绝对路径,多个项目成员如何管理这个路径
预期行为
为什么私钥路径一定要是绝对路径,多个项目成员如何管理这个路径
导致错误的代码片段
操作系统
Linux
Java 版本
JAVA 8
wechatpay-java 版本
0.2.12
其他信息
为什么私钥路径一定要是绝对路径,多个项目成员如何管理这个路径
The text was updated successfully, but these errors were encountered: