weixin-java-cp-demo
weixin-java-cp-demo copied to clipboard
Return value of "me.chanjar.weixin.cp.config.impl.WxCpRedissonConfigImpl.getCorpId()" is null
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的地方,的确有报有问题的地方,但是根据文档也没有什么问题。

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

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