老师我加了支付相关代码之后就没有办法成功启动项目

来源: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文件里面微信支付的配置信息你没写吧

0
2
神思者
回复
weixin_慕前端6530431
估计是你填的不对,视频里面有讲解,你是不是快进了。建议你回看视频,排查一下是不是丢掉了某些细节
2023-02-09
共2条回复

SpringBoot2.X + Vue + UniAPP,全栈开发医疗小程序

毕设/求职可用的新潮优秀案例(Web管理端+小程序用户端)

692 学习 · 477 问题

查看课程