binarywang / weixin-java-cp-demo

基于Spring Boot 和 WxJava 实现的微信企业号/企业微信 后端Demo
362 stars 243 forks source link

Return value of "me.chanjar.weixin.cp.config.impl.WxCpRedissonConfigImpl.getCorpId()" is null #22

Open CapitaineNemo opened 1 year ago

CapitaineNemo commented 1 year ago

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wxCpConfiguration': Invocation of init method failed; nested exception is java.lang.NullPointerException: Cannot invoke "String.concat(String)" because the return value of "me.chanjar.weixin.cp.config.impl.WxCpRedissonConfigImpl.getCorpId()" is null 下面是配置CorpId的地方,的确有报有问题的地方,但是根据文档也没有什么问题。

9b1586fd037484f1ac4c2bea6a44355

binarywang commented 1 year ago

确定配置的位置都是正确的?

CapitaineNemo commented 1 year ago

确定配置的位置都是正确的?

我其实并不确定,能帮我看看我我配置的是否正确吗?我理解在只需要在yml里面配置就好了。这个报错说明没有成功取到CorpID的值。我只需要配置一个应用(实例)。

屏幕截图 2022-11-11 171327

binarywang commented 1 year ago

你要对照类和配置文件分析下,看是否是不匹配?