Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition w

项目出现的问题:

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'weChatPayConfig' defined in class path resource [com/Config/WeChatPayConfig.class]: factory-bean reference points back to the same bean definition

google在线翻译:

由于:org.springframework.beans.factory.BeanDefinitionStoreException:在类路径资源[com / Config / WeChatPayConfig.class]中定义了名称为“weChatPayConfig”的无效bean定义:工厂bean引用指向同一个bean定义

原因:

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition w_第1张图片

方法名修改一下就可以了


你可能感兴趣的:(java语言,java中常出现的错误)