weixin-java-cp-demo icon indicating copy to clipboard operation
weixin-java-cp-demo copied to clipboard

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

Open CapitaineNemo opened this issue 3 years ago • 3 comments

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

CapitaineNemo avatar Nov 01 '22 09:11 CapitaineNemo

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

binarywang avatar Nov 09 '22 02:11 binarywang

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

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

屏幕截图 2022-11-11 171327

CapitaineNemo avatar Nov 11 '22 09:11 CapitaineNemo

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

binarywang avatar Nov 11 '22 10:11 binarywang