Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class sun.security.util.ObjectIdentifier and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: sun.security.rsa.RSAPrivateCrtKeyImpl["algorithmId"]->sun.security.x509.AlgorithmId["oid"])
getVerifier()
调用此方法报错。但是我我也没办法去控制啊。这个如何解
请确认一下平台证书是否已经过期,或者是新申请的微信支付商户号,新申请的微信支付商户号需要使用公私钥模式进行接口验签。具体信息可参考:https://developers.weixin.qq.com/community/pay/doc/0002c6a7cf438818df52145b863c01
如若涉及公私钥模式,请确认当前正在使用的SDK,如果是wechatpay-apache-httpclient https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient,该SDK目前已停止维护,不支持使用平台公钥。可以升级至 微信支付 APIv3 Java SDK https://github.com/wechatpay-apiv3/wechatpay-java