@Bean
public RSAAutoCertificateConfig rsaAutoCertificateConfig() {
validateConfig();
if(config==null){
config = new RSAAutoCertificateConfig.Builder()
.merchantId(weChatConfig.getMchId())
.privateKeyFromPath(weChatConfig.getApiClientKeyPath())
.merchantSerialNumber(weChatConfig.getMchSerialNo())
.apiV3Key(weChatConfig.getApiV3Key())
.build();
}
return config;
}
引入微信支付后,说是会有后台进程在跑,定期下载证书。这样就在停掉应用时(如停掉Tomcat服务)要等待好长时间,超过1分钟。是不是因为上面的代码所致?
这种情况该如何解决?
目前这个代码会有一个定时自动请求平台证书的流程,你这边可以检测一下相关的进程