请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

老师 我这边代码是没有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”

正在回答 回答被采纳积分+3

2回答

神思者 2024-03-18 11:40:53

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

0 回复 有任何疑惑可以回复我~
  • 提问者 小胖185 #1
    老师我申请到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 15:30:47
提问者 小胖185 2024-03-18 06:16:19

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

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 回复 有任何疑惑可以回复我~
  • TRTC暂时可以随便填写,现在是你的支付密钥和APPID写的不对
    回复 有任何疑惑可以回复我~ 2024-03-22 20:16:54
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号