下载的是学习首选的代码, 代码不全.

来源:3-4 使用RESTful封装MIS系统登录接口(二)

小胖185

2024-03-18

老师 我这边代码是没有controller 和service的. 里面的东西不全. 这边启动后
这个慕课的git 怎么使用.

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024/03/18 02:15:37  ERROR  Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'trtcUtil': Unsatisfied dependency expressed through field 'appId'; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "TRTC的appId"

Caused by: java.lang.NumberFormatException: For input string: “TRTC的appId”

写回答

2回答

神思者

2024-03-18

去腾讯云申请TRTC,后面章节视频有说明,你可以去看一下申请开通的步骤

0
1
小胖185
老师我申请到TRTC了, 现在运行起来报错 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wechatMetaContainer' 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.WechatMetaContainer]: Factory method 'wechatMetaContainer' threw exception; nested exception is cn.felord.payment.PayException: Cannot load keys from store: class path resource [apiclient_cert.p12] 如何解决. 我都按照教程进行配置了
2024-03-22
共1条回复

小胖185

提问者

2024-03-18

我找到了对应的配置文件 里面的

tencent.trtc.appID 怎么填写

我随便填写了一下 现在的错误原因是 

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.felord.payment.wechat.v3.WechatMetaContainer]: 
Factory method 'wechatMetaContainer' threw exception; 
nested exception is cn.felord.payment.PayException: 
Cannot load keys from store: class path resource [apiclient_cert.p12]

    

    

0
1
神思者
TRTC暂时可以随便填写,现在是你的支付密钥和APPID写的不对
2024-03-22
共1条回复

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

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

692 学习 · 477 问题

查看课程