老师我加了支付相关代码之后就没有办法成功启动项目
来源:6-18 调用微信支付3.0接口创建付款单

weixin_慕前端6530431
2023-02-09
老师我加了支付相关代码之后就没有办法成功启动项目,报错如下
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2023/02/09 10:43:53 ERROR Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘registrationController’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘registrationServiceImpl’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘paymentServiceImpl’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘wechatApiProvider’ defined in class path resource [cn/felord/payment/wechat/WechatPayConfiguration.class]: Unsatisfied dependency expressed through method ‘wechatApiProvider’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘wechatPayClient’ defined in class path resource [cn/felord/payment/wechat/WechatPayConfiguration.class]: Unsatisfied dependency expressed through method ‘wechatPayClient’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘signatureProvider’ defined in class path resource [cn/felord/payment/wechat/WechatPayConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.felord.payment.wechat.v3.SignatureProvider]: Factory method ‘signatureProvider’ threw exception; nested exception is cn.felord.payment.PayException: javax.crypto.AEADBadTagException: mac check in GCM failed
1回答
-
神思者
2023-02-09
YML文件里面微信支付的配置信息你没写吧
022023-02-09
相似问题