java启动出错是什么原因?要怎么操作?

来源:2-4 基于Phoenix的RBAC权限模型

慕虎9332954

2023-02-14

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2023/02/13 23:53:58 ERROR Application run failed
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]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)

写回答

1回答

神思者

2023-02-14

你的项目resources目录里面没有p12的数字证书文件?

1
3
慕虎9332954
回复
神思者
搞了3天确实是yml里面的patient-wx-api里面的app-v3-secret没填正确,填成了app-secret的了,这个只要错一个字就启动不了,各位同学以此为戒!
2023-02-19
共3条回复

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

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

692 学习 · 477 问题

查看课程