收藏
回答

接入微信支付java sdk初始化报错

接入微信支付sdk初始化报错 mchId, privateKeyPath, merchantSerialNumber, apiV3Key这些参数都以配置无误org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext, AbstractApplicationContext.java, 599, refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'paymentController': Unsatisfied dependency expressed through field 'jsapiService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weChatJsapiService' defined in class path resource [com/tingbon/icon/config/WxPayConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.wechat.pay.java.service.payments.jsapi.JsapiService]: Factory method 'weChatJsapiService' threw exception; nested exception is com.wechat.pay.java.core.exception.ServiceException: Wrong HttpStatusCode[404]

httpResponseBody[{"code":"RESOURCE_NOT_EXISTS","message":"无可用的平台证书,请在商户平台-API安全申请使用微信支付公钥。可查看指引https://pay.weixin.qq.com/docs/merchant/products/platform-certificate/wxp-pub-key-guide.html"}]

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容