Results 4 comments of 吕光增

升级dubbo-admin版本

``` 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或者设计接口的都不会用自己做出来的东西……🍐🎼