AutoUpdateCertificatesVerifier verifier = new AutoUpdateCertificatesVerifier(
new WechatPay2Credentials(AppPayController.mchId, new PrivateKeySigner(AppPayController.mchSerialNo, merchantPrivateKey)),
AppPayController.apiV3Key.getBytes("utf-8"));
实例化报错
==============异常开始=============
java.lang.IllegalArgumentException: java.security.InvalidKeyException: Illegal key size
上网查后 说是jdk 里没有无限制权限策略
重新按照网址在oracle下载了jdk1.8 JCE无限制权限策略文件.zip
并在jre/lib/security中替换掉了local_policy.jar和US_export_policy.jar
但是并没有解决问题